From 8b26f1b79c614443b44b031bd3727c306ddc35d7 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sun, 5 May 2013 10:55:52 +0000 Subject: 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 --- tests/test_pamcmds.sh | 6 ++++-- 1 file 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 -- cgit v1.2.3