From 0461fa13d4af0565ed885873cfdad18bb07ba9fd Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 22 Feb 2022 17:42:55 +0100 Subject: [PATCH] examples: Fix shellcheck error in get_next_oid MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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ý --- examples/LDAP/get_next_oid | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ...." -- 2.47.3