diff options
author | Jeremy Allison <jra@samba.org> | 2009-10-17 20:46:22 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-10-17 20:46:22 -0700 |
commit | 8d85757578a21ed93d7604d627e329ddf3e04067 (patch) | |
tree | 067072c7041e604476873995c106fa31ec1c3d35 /source3/script | |
parent | a2aa13da3272b62b8d47d624a0d7fc65825adf6e (diff) | |
download | samba-8d85757578a21ed93d7604d627e329ddf3e04067.tar.gz samba-8d85757578a21ed93d7604d627e329ddf3e04067.tar.bz2 samba-8d85757578a21ed93d7604d627e329ddf3e04067.zip |
Fix posix_unlink test. Was doing grep without quotes around the
target string.
Jeremy.
Diffstat (limited to 'source3/script')
-rwxr-xr-x | source3/script/tests/test_smbclient_s3.sh | 7 |
1 files 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 } |