mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
0461fa13d4
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>
16 lines
488 B
Bash
Executable File
16 lines
488 B
Bash
Executable File
#!/bin/bash
|
|
|
|
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)
|
|
|
|
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=$((nextoc + 1))
|
|
|
|
echo "objectclass ( 1.3.6.1.4.1.7165.2.2.$nextoc NAME ...."
|