fix count entry max.

This commit is contained in:
creme 2020-02-26 17:12:28 +01:00
parent 0b61aca360
commit f44fb245e1
Signed by: creme
GPG Key ID: C147C3B7FBDF08D0
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ EOM
if ! [[ ":${field_exists[*]}:" =~ $user_field ]]; then
# entry will be a single line
count_field_entry='0'
count_entry="$(( "$count_entry" + 1 ))" ; [ "$count_entry" -lt '10' ] || continue
count_entry="$(( "$count_entry" + 1 ))" ; [ "$count_entry" -le '10' ] || continue
field_exists+=( "$user_field" )
line_to_set["$user_field","$count_field_entry"]+="$user_value"