]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:script: Fix shellcheck errors in test_net_cred_change.sh
authorAndreas Schneider <asn@samba.org>
Thu, 3 Mar 2022 14:18:45 +0000 (15:18 +0100)
committerPavel Filipensky <pfilipensky@samba.org>
Mon, 22 Aug 2022 14:20:36 +0000 (14:20 +0000)
source3/script/tests/test_net_cred_change.sh:13:64: error: Double quote
array expansions to avoid re-splitting elements. [SC2068]

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
source3/script/tests/test_net_cred_change.sh

index 86d95dde60e03e9700a3673614dda5a88c0f20d7..7b01673c132a76b22570cbd0a114880485690c8a 100755 (executable)
@@ -10,8 +10,8 @@ fi
 incdir=$(dirname $0)/../../../testprogs/blackbox
 . $incdir/subunit.sh
 testit "1: change machine secret" $VALGRIND $BINDIR/wbinfo --change-secret || failed=$(expr $failed + 1)
-testit "1: validate secret" $VALGRIND $BINDIR/net rpc testjoin $@ || failed=$(expr $failed + 1)
+testit "1: validate secret" $VALGRIND $BINDIR/net rpc testjoin "$@" || failed=$(expr $failed + 1)
 testit "2: change machine secret" $VALGRIND $BINDIR/wbinfo --change-secret || failed=$(expr $failed + 1)
-testit "2: validate secret" $VALGRIND $BINDIR/net rpc testjoin $@ || failed=$(expr $failed + 1)
+testit "2: validate secret" $VALGRIND $BINDIR/net rpc testjoin "$@" || failed=$(expr $failed + 1)
 
 testok $0 $failed