From: Andreas Schneider Date: Tue, 22 Feb 2022 16:42:55 +0000 (+0100) Subject: examples: Fix shellcheck error in get_next_oid X-Git-Tag: talloc-2.4.0~1411 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0461fa13d4af0565ed885873cfdad18bb07ba9fd;p=thirdparty%2Fsamba.git examples: Fix shellcheck error in get_next_oid examples/LDAP/get_next_oid:6:4: error: Remove spaces around += to assign (or quote '+=' if literal). [SC2285] Signed-off-by: Andreas Schneider Reviewed-by: Pavel Filipenský --- diff --git a/examples/LDAP/get_next_oid b/examples/LDAP/get_next_oid index f268b47b50d..bc3d6fc43c4 100755 --- a/examples/LDAP/get_next_oid +++ b/examples/LDAP/get_next_oid @@ -3,13 +3,13 @@ nextattrib=$(cat samba.schema | grep -i attributetype.*\(.*1.3.6.1.4.1.7165. | grep -v '^#' | awk '{print $3}' | cut -d. -f 10 | sort -n | tail -1) -( (nextattrib += 1)) +netattrib=$((netattrib + 1)) echo "attributetype ( 1.3.6.1.4.1.7165.2.1.$nextattrib NAME ...." nextoc=$(cat samba.schema | grep -i objectclass.*\(.*1.3.6.1.4.1.7165. | grep -v '^#' | awk '{print $3}' | cut -d. -f 10 | sort -n | tail -1) -( (nextoc += 1)) +nextoc=$((nextoc + 1)) echo "objectclass ( 1.3.6.1.4.1.7165.2.2.$nextoc NAME ...."