From: Andreas Schneider Date: Thu, 3 Mar 2022 14:21:33 +0000 (+0100) Subject: s3:script: Fix shellcheck errors in test_net_lookup.sh X-Git-Tag: talloc-2.4.0~1377 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4c02eb4df34f389125a768b6ce13a5002caf607e;p=thirdparty%2Fsamba.git s3:script: Fix shellcheck errors in test_net_lookup.sh 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ý --- diff --git a/source3/script/tests/test_net_lookup.sh b/source3/script/tests/test_net_lookup.sh index 161c1c99262..ee183335550 100755 --- a/source3/script/tests/test_net_lookup.sh +++ b/source3/script/tests/test_net_lookup.sh @@ -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 \