]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:selftest: Fix shellcheck errors in wintest_net.sh
authorAndreas Schneider <asn@samba.org>
Mon, 13 Jun 2022 09:26:38 +0000 (11:26 +0200)
committerPavel Filipensky <pfilipensky@samba.org>
Mon, 22 Aug 2022 15:15:11 +0000 (15:15 +0000)
source4/selftest/win/wintest_net.sh:57:27: error: Use braces when
expanding arrays, e.g. ${array[idx]} (or ${var}[.. to quiet). [SC1087]

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
Autobuild-User(master): Pavel Filipensky <pfilipensky@samba.org>
Autobuild-Date(master): Mon Aug 22 15:15:11 UTC 2022 on sn-devel-184

source4/selftest/win/wintest_net.sh

index 429be6cd792cff6605354dc57a1c5c6c5c369b8b..852b08742924d6a93a734f8e88fdb2cabc2216ef 100755 (executable)
@@ -54,7 +54,7 @@ for o in $bind_options; do
                for t in $net_test; 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