From 8c1c63aab820897f95d6c5ae2aa65275ddd97e50 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 13 Jun 2022 11:27:53 +0200 Subject: [PATCH] s4:selftest: Fix shellcheck errors in wintest_rpc.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ý --- source4/selftest/win/wintest_rpc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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