summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2022-02-22 17:42:55 +0100
committerPavel Filipensky <pfilipensky@samba.org>2022-08-17 10:08:35 +0000
commit0461fa13d4af0565ed885873cfdad18bb07ba9fd (patch)
tree1d9a5fd0566160b5f25dd4d6922ad70411c655e1 /examples
parent9594778895ee1be90c491c9b1d13c97cce16cc53 (diff)
downloadsamba-0461fa13d4af0565ed885873cfdad18bb07ba9fd.tar.gz
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 <asn@samba.org> Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/LDAP/get_next_oid4
1 files 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 ...."