From: Andreas Schneider Date: Tue, 22 Feb 2022 16:58:47 +0000 (+0100) Subject: nsswitch: Fix shellcheck errors in test_rfc2307_mapping.sh X-Git-Tag: talloc-2.4.0~1408 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=72f16b635445025a9b523974ba08c753ea78ed58;p=thirdparty%2Fsamba.git nsswitch: Fix shellcheck errors in test_rfc2307_mapping.sh nsswitch/tests/test_rfc2307_mapping.sh:65:139: error: Double quote array expansions to avoid re-splitting elements. [SC2068] Signed-off-by: Andreas Schneider Reviewed-by: Pavel Filipenský --- diff --git a/nsswitch/tests/test_rfc2307_mapping.sh b/nsswitch/tests/test_rfc2307_mapping.sh index 8cd2e5dc57e..d6d39a10b68 100755 --- a/nsswitch/tests/test_rfc2307_mapping.sh +++ b/nsswitch/tests/test_rfc2307_mapping.sh @@ -63,10 +63,12 @@ knownfail() } # Create new testing account -testit "user add" $PYTHON $samba_tool user create --given-name="rfc2307" --surname="Tester" --initial="UT" rfc2307_test_user testp@ssw0Rd $@ +testit "user add" $PYTHON $samba_tool user create --given-name="rfc2307" \ + --surname="Tester" --initial="UT" rfc2307_test_user testp@ssw0Rd "$@" #test creation of six different groups -testit "group add" $PYTHON $samba_tool group add $CONFIG --group-scope='Domain' --group-type='Security' rfc2307_test_group $@ +testit "group add" $PYTHON $samba_tool group add $CONFIG \ + --group-scope='Domain' --group-type='Security' rfc2307_test_group "$@" # Create new testing group @@ -115,7 +117,9 @@ add: uidNumber uidNumber: $UID_RFC2307TEST EOF -testit "modify gidNumber on group" $VALGRIND $ldbmodify -H ldap://$SERVER $PREFIX/tmpldbmodify -U$DOMAIN/$USERNAME%$PASSWORD $@ || failed=$(expr $failed + 1) +testit "modify gidNumber on group" $VALGRIND $ldbmodify -H ldap://$SERVER \ + $PREFIX/tmpldbmodify -U$DOMAIN/$USERNAME%$PASSWORD "$@" || + failed=$(expr $failed + 1) # Then add a gidNumber to the group record using ldbmodify cat >$PREFIX/tmpldbmodify <