From: Andreas Schneider Date: Fri, 4 Mar 2022 11:08:28 +0000 (+0100) Subject: s3:script: Fix shellcheck errors in test_smbclient_s3.sh X-Git-Tag: talloc-2.4.0~1372 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=47eacce86be0c0bc3da84d8c327e49659044fb51;p=thirdparty%2Fsamba.git s3:script: Fix shellcheck errors in test_smbclient_s3.sh source3/script/tests/test_smbclient_s3.sh:270:5: error: Couldn't parse this test expression. Fix to allow more checks. [SC1073] source3/script/tests/test_smbclient_s3.sh:270:11: error: Expected test to end here (don't wrap commands in []/[[]]). Fix any mentioned problems and try again. [SC1072] Signed-off-by: Andreas Schneider Reviewed-by: Pavel Filipenský --- diff --git a/source3/script/tests/test_smbclient_s3.sh b/source3/script/tests/test_smbclient_s3.sh index 33737b22273..fed1723a531 100755 --- a/source3/script/tests/test_smbclient_s3.sh +++ b/source3/script/tests/test_smbclient_s3.sh @@ -267,7 +267,7 @@ EOF return 1 fi - if [ cmp $PREFIX/message_out.$$ $tmpfile != 0 ]; then + if cmp $PREFIX/message_out.$$ $tmpfile; then echo "failed comparison of message from $SERVER" return 1 fi