From: Andreas Schneider Date: Fri, 10 Jun 2022 11:10:07 +0000 (+0200) Subject: s4:selftest: Fix shellcheck errors in test_w2k3.sh X-Git-Tag: talloc-2.4.0~1366 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4b2f4189491dfe5fc5d31689a87694730986b71d;p=thirdparty%2Fsamba.git s4:selftest: Fix shellcheck errors in test_w2k3.sh source4/selftest/test_w2k3.sh:40:67: error: Use braces when expanding arrays, e.g. ${array[idx]} (or ${var}[.. to quiet). [SC1087] source4/selftest/test_w2k3.sh:46:66: error: Use braces when expanding arrays, e.g. ${array[idx]} (or ${var}[.. to quiet). [SC1087] source4/selftest/test_w2k3.sh:48:66: error: Use braces when expanding arrays, e.g. ${array[idx]} (or ${var}[.. to quiet). [SC1087] Signed-off-by: Andreas Schneider Reviewed-by: Pavel Filipenský --- diff --git a/source4/selftest/test_w2k3.sh b/source4/selftest/test_w2k3.sh index 20d4e5dbe78..c2767ce96af 100755 --- a/source4/selftest/test_w2k3.sh +++ b/source4/selftest/test_w2k3.sh @@ -37,12 +37,12 @@ for bindoptions in padcheck connect sign seal ntlm,sign ntlm,seal $VALIDATE bige esac for t in $tests; do name="$t on $transport with $bindoptions" - testit "$name" rpc bin/smbtorture $TORTURE_OPTIONS $transport:"$server[$bindoptions]" $OPTIONS $t "$*" + testit "$name" rpc bin/smbtorture $TORTURE_OPTIONS $transport:"${server}[${bindoptions}]" $OPTIONS $t "$*" done done done name="RPC-DRSUAPI on ncacn_ip_tcp with seal" -testit "$name" rpc bin/smbtorture $TORTURE_OPTIONS ncacn_ip_tcp:"$server[seal]" $OPTIONS RPC-DRSUAPI "$*" +testit "$name" rpc bin/smbtorture $TORTURE_OPTIONS ncacn_ip_tcp:"${server}[seal]" $OPTIONS RPC-DRSUAPI "$*" name="RPC-DRSUAPI on ncacn_ip_tcp with seal,bigendian" -testit "$name" rpc bin/smbtorture $TORTURE_OPTIONS ncacn_ip_tcp:"$server[seal,bigendian]" $OPTIONS RPC-DRSUAPI "$*" +testit "$name" rpc bin/smbtorture $TORTURE_OPTIONS ncacn_ip_tcp:"${server}[seal,bigendian]" $OPTIONS RPC-DRSUAPI "$*"