From 47eacce86be0c0bc3da84d8c327e49659044fb51 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 4 Mar 2022 12:08:28 +0100 Subject: [PATCH] s3:script: Fix shellcheck errors in test_smbclient_s3.sh MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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ý --- source3/script/tests/test_smbclient_s3.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3