summaryrefslogtreecommitdiff
path: root/source3/script/tests/test_smbclient_s3.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source3/script/tests/test_smbclient_s3.sh')
-rwxr-xr-xsource3/script/tests/test_smbclient_s3.sh7
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
}