]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
testprogs: Fix shellcheck errors in test_chgdcpass.sh
authorAndreas Schneider <asn@samba.org>
Mon, 13 Jun 2022 13:33:55 +0000 (15:33 +0200)
committerPavel Filipensky <pfilipensky@samba.org>
Mon, 22 Aug 2022 20:35:36 +0000 (20:35 +0000)
testprogs/blackbox/test_chgdcpass.sh:48:79: error: Double quote array
expansions to avoid re-splitting elements. [SC2068]

testprogs/blackbox/test_chgdcpass.sh:49:74: 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>
testprogs/blackbox/test_chgdcpass.sh

index 8b0ef45673f20f5f9548e444cc30575539d585dc..e20c443d00e171a877c36f913ddc300a5bed70f9 100755 (executable)
@@ -45,8 +45,8 @@ test_drs()
        shift
        shift
        echo "test: $name"
-       echo $VALGRIND $PYTHON $samba4bindir/samba-tool drs $function $SERVER -k yes $@
-       $VALGRIND $PYTHON $samba4bindir/samba-tool drs $function $SERVER -k yes $@
+       echo $VALGRIND $PYTHON $samba4bindir/samba-tool drs $function $SERVER -k yes "$@"
+       $VALGRIND $PYTHON $samba4bindir/samba-tool drs $function $SERVER -k yes "$@"
        status=$?
        if [ x$status = x0 ]; then
                echo "success: $name"