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

source4/selftest/win/wintest_2k3_dc.sh:62:16: error: Use braces when
expanding arrays, e.g. ${array[idx]} (or ${var}[.. to quiet). [SC1087]

source4/selftest/win/wintest_2k3_dc.sh:85:16: error: Use braces when
expanding arrays, e.g. ${array[idx]} (or ${var}[.. to quiet). [SC1087]

source4/selftest/win/wintest_2k3_dc.sh:101:16: 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>
source4/selftest/win/wintest_2k3_dc.sh

index 4852e22a01c5b5872f2028a84c4a19f7345bfbb6..e77c2e222292c6b0121d49dd44a7b54243d8fced 100755 (executable)
@@ -54,12 +54,12 @@ drsuapi_tests()
 
        name="RPC-DRSUAPI on ncacn_ip_tcp with seal"
        bin/smbtorture \
-               ncacn_ip_tcp:$server[seal] $OPTIONS \
+               ncacn_ip_tcp:${server}[seal] $OPTIONS \
                RPC-DRSUAPI || on_error "$name"
 
        name="RPC-DRSUAPI on ncacn_ip_tcp with seal,bigendian"
        bin/smbtorture \
-               ncacn_ip_tcp:$server[seal,bigendian] $OPTIONS \
+               ncacn_ip_tcp:${server}[seal,bigendian] $OPTIONS \
                RPC-DRSUAPI || on_error "$name"
 }
 
@@ -82,7 +82,7 @@ ncacn_ip_tcp_tests()
                for t in $tests; do
                        name="$t on $transport with $bindoptions"
                        bin/smbtorture $TORTURE_OPTIONS \
-                               $transport:$server[$bindoptions] \
+                               $transport:${server}[$bindoptions] \
                                $OPTIONS $t || on_error "$name"
                done
        done
@@ -98,7 +98,7 @@ ncacn_np_tests()
                for t in $tests; do
                        name="$t on $transport with $bindoptions"
                        bin/smbtorture $TORTURE_OPTIONS \
-                               $transport:$server[$bindoptions] \
+                               $transport:${server}[$bindoptions] \
                                $OPTIONS $t || on_error "$name"
                done
        done