]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:script: Fix shellcheck errors in test_net_lookup.sh
authorAndreas Schneider <asn@samba.org>
Thu, 3 Mar 2022 14:21:33 +0000 (15:21 +0100)
committerPavel Filipensky <pfilipensky@samba.org>
Mon, 22 Aug 2022 14:20:36 +0000 (14:20 +0000)
source3/script/tests/test_net_lookup.sh:37:9: error: Remove spaces
around = to assign (or use [ ] to compare, or quote '=' if literal).
[SC2283]

Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
source3/script/tests/test_net_lookup.sh

index 161c1c99262da73f5278891fb754c1d0a2a23a10..ee183335550dfb227489fe749bc486dafcdea362 100755 (executable)
@@ -34,15 +34,15 @@ $SAMBATOOL dns add "$SERVER" -U "$USERNAME"%"$PASSWORD" \
 
 # global lookup
 testit_grep global 10.53.57.30:389 $NET lookup ldap "$DNSZONE" ||
-       failed = $(expr $failed + 1)
+       failed=$(expr $failed + 1)
 
 # correct site-aware lookup
 testit_grep site-aware 1.2.3.4:389 $NET lookup ldap "$DNSZONE" "$SITE" ||
-       failed = $(expr $failed + 1)
+       failed=$(expr $failed + 1)
 
 # lookup with nonexisting site -- global fallback
 testit_grep global 10.53.57.30:389 $NET lookup ldap "$DNSZONE" nosite ||
-       failed = $(expr $failed + 1)
+       failed=$(expr $failed + 1)
 
 $SAMBATOOL dns delete "$SERVER" -U "$USERNAME"%"$PASSWORD" \
        "$DNSZONE" mydc \