diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2013-03-10 17:09:03 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2013-03-10 23:15:26 +0100 |
commit | 24c565cf053c0149e3b0a5098284314fed248c55 (patch) | |
tree | 79eb4bc46615654279cf34fc2f1cb5ae8bbaa048 /tests | |
parent | 6a926212484bcd423aa265341eb198ef2bc9b410 (diff) |
small portability fix in test_pamcmds.sh
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test_pamcmds.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_pamcmds.sh b/tests/test_pamcmds.sh index 798cafd..a50205c 100755 --- a/tests/test_pamcmds.sh +++ b/tests/test_pamcmds.sh @@ -2,7 +2,7 @@ # test_pamcmds.sh - test script to start test_pamcmds.expect # -# Copyright (C) 2011 Arthur de Jong +# Copyright (C) 2011, 2013 Arthur de Jong # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -29,8 +29,10 @@ srcdir="${srcdir-`dirname "$0"`}" # check if we have expect installed EXPECT="$(which expect 2> /dev/null || true)" -if ! [ -x "$EXPECT" ] +if [ -x "$EXPECT" ] then + : +else echo "$0: expect not found, not running tests" exit 77 fi |