Handle tabs and spaces
This commit is contained in:
parent
3b1b48b93d
commit
2f38b32d89
@ -77,8 +77,8 @@ ${open_url}: Open URL | ${copy_name}: Copy Username | ${copy_pass}: Copy Passwor
|
|||||||
declare -A stuff
|
declare -A stuff
|
||||||
|
|
||||||
while read LINE; do
|
while read LINE; do
|
||||||
_id=$(echo "${LINE}" | awk -F': ' '{print $1}')
|
_id=$(echo "${LINE}" | awk -F':[[:space:]]*' '{print $1}')
|
||||||
_val=$(echo "${LINE}" | awk -F': ' '{print $2}')
|
_val=$(echo "${LINE}" | awk -F':[[:space:]]*' '{print $2}')
|
||||||
stuff["${_id}"]=${_val}
|
stuff["${_id}"]=${_val}
|
||||||
done < <(pass "${selected_password}" | tail -n+2 | grep ': ')
|
done < <(pass "${selected_password}" | tail -n+2 | grep ': ')
|
||||||
stuff["pass"]=${password}
|
stuff["pass"]=${password}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user