mirror of https://git.envs.net/envs/ops.git
check field_name and field_value is separated with '='
This commit is contained in:
parent
56e8fe5642
commit
c7e66d003a
|
@ -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//*=/}"
|
||||
|
|
Loading…
Reference in New Issue