s3:script: Fix shellcheck errors in test_net_registry_check.sh
authorAndreas Schneider <asn@samba.org>
Thu, 3 Mar 2022 14:23:25 +0000 (15:23 +0100)
committerAndreas Schneider <asn@samba.org>
Fri, 15 Jul 2022 13:32:38 +0000 (15:32 +0200)
source3/script/tests/test_net_registry_check.sh:33:32: error: Double
quote array expansions to avoid re-splitting elements. [SC2068]

Signed-off-by: Andreas Schneider <asn@samba.org>
source3/script/tests/test_net_registry_check.sh

index 3555af0530606e8399cd5d34c080d8a31f864ebc..07ccf86cdae96a2c038a5ce6afaf04a120a243ee 100755 (executable)
@@ -30,7 +30,7 @@ failed=0
 regcheck()
 {
        ALLOWEDERR="Check database:|INFO: version ="
-       ERRSTR=$(${NETREG} check $REG $@ 2>&1 | egrep -v "$ALLOWEDERR")
+       ERRSTR=$(${NETREG} check $REG "$@" 2>&1 | egrep -v "$ALLOWEDERR")
 }
 
 # try to repair registry