From: Andreas Schneider Date: Mon, 13 Jun 2022 09:27:53 +0000 (+0200) Subject: s4:selftest: Fix shellcheck errors in wintest_rpc.sh X-Git-Tag: talloc-2.4.0~1362 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8c1c63aab820897f95d6c5ae2aa65275ddd97e50;p=thirdparty%2Fsamba.git s4:selftest: Fix shellcheck errors in wintest_rpc.sh source4/selftest/win/wintest_rpc.sh:61:27: 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/win/wintest_rpc.sh b/source4/selftest/win/wintest_rpc.sh index 03ac6a87558..e1b4fe99506 100755 --- a/source4/selftest/win/wintest_rpc.sh +++ b/source4/selftest/win/wintest_rpc.sh @@ -58,7 +58,7 @@ for o in $bind_options; do test_name="$t on $transport with $o" $SMBTORTURE_BIN_PATH -U $username%$password \ - -W $domain $transport:$server[$o] \ + -W $domain ${transport}:${server}[$o] \ $t || on_error "\n$test_name failed." done done