s4:selftest: Fix shellcheck errors in wintest_rpc.sh
authorAndreas Schneider <asn@samba.org>
Mon, 13 Jun 2022 09:27:53 +0000 (11:27 +0200)
committerAndreas Schneider <asn@samba.org>
Fri, 15 Jul 2022 13:32:38 +0000 (15:32 +0200)
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 <asn@samba.org>
source4/selftest/win/wintest_rpc.sh

index 03ac6a8755887ab294c6424ad5be9d6a48444eec..e1b4fe99506c634acb078b143723cadc70ef2761 100755 (executable)
@@ -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