check field_name and field_value is separated with '='

This commit is contained in:
creme 2020-10-08 20:13:30 +02:00
parent 56e8fe5642
commit c7e66d003a
Signed by: creme
GPG Key ID: C147C3B7FBDF08D0
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ EOM
# check 'INFO_FILE' and add entrys to 'line_to_set' array
while read -r LINE ; do
if [ -n "$LINE" ] && ! [[ "$LINE" = '#'* ]] \
if [ -n "$LINE" ] && ! [[ "$LINE" = '#'* ]] && [[ "$LINE" = *'='* ]] \
&& ! [[ "$LINE" = 'desc='* ]] && ! [[ "$LINE" = 'ssh_pubkey='* ]]; then
user_field="${LINE//=*/}"
user_value="${LINE//*=/}"