diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2013-05-05 12:55:52 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2013-05-05 12:55:52 +0200 |
commit | 8b26f1b79c614443b44b031bd3727c306ddc35d7 (patch) | |
tree | 416c96e23fa026accbe33d2a6e679343d72c97ec | |
parent | 16a221ce8bb108d00f7830500cfe592c9740c5ae (diff) |
small portability fix in test_pamcmds.sh (24c565c from 0.9)
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-0.8@1954 ef36b2f9-881f-0410-afb5-c4e39611909c
-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 |