From 8d85757578a21ed93d7604d627e329ddf3e04067 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sat, 17 Oct 2009 20:46:22 -0700 Subject: Fix posix_unlink test. Was doing grep without quotes around the target string. Jeremy. --- source3/script/tests/test_smbclient_s3.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source3/script/tests/test_smbclient_s3.sh b/source3/script/tests/test_smbclient_s3.sh index 3ff9597ceb..ff5022015f 100755 --- a/source3/script/tests/test_smbclient_s3.sh +++ b/source3/script/tests/test_smbclient_s3.sh @@ -113,14 +113,15 @@ EOF return fi - echo "$out" | grep $prompt >/dev/null 2>&1 + echo "$out" | grep "$prompt" >/dev/null 2>&1 - if [ $? = 0 ] ; then + ret=$? + if [ $ret = 0 ] ; then # got the correct prompt .. succeed true else echo "$out" - echo failed create then delete bad symlink + echo "failed create then delete bad symlink - grep failed with $ret" false fi } -- cgit