Fix posix_unlink test. Was doing grep without quotes around the
authorJeremy Allison <jra@samba.org>
Sun, 18 Oct 2009 03:46:22 +0000 (20:46 -0700)
committerJeremy Allison <jra@samba.org>
Sun, 18 Oct 2009 03:46:22 +0000 (20:46 -0700)
target string.
Jeremy.

source3/script/tests/test_smbclient_s3.sh

index 3ff9597ceb7e2a8559bc71f91e4520d804162b27..ff5022015f89fa9c31f5183aa00caa5cb10b1a7d 100755 (executable)
@@ -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
 }