concatenate all values before passing to TYPE_CMD to avoid race conditions due to buffering
This commit is contained in:
parent
40837d70af
commit
26f8aae606
@ -103,11 +103,10 @@ if [[ $typeit -eq 0 ]]; then
|
|||||||
wl-copy "$(_pass_get $field)"
|
wl-copy "$(_pass_get $field)"
|
||||||
else
|
else
|
||||||
if [[ $field == "autotype" ]] || [[ $autotype -eq 1 ]]; then
|
if [[ $field == "autotype" ]] || [[ $autotype -eq 1 ]]; then
|
||||||
_pass_get "username" | ${TYPE_CMD}
|
username=$(_pass_get "username")
|
||||||
printf "\t" | ${TYPE_CMD}
|
password=$(_pass_get "password")
|
||||||
_pass_get "password" | ${TYPE_CMD}
|
printf "%b\t%b\n" $username $password | $TYPE_CMD
|
||||||
printf "\n" | ${TYPE_CMD}
|
|
||||||
else
|
else
|
||||||
_pass_get $field | ${TYPE_CMD}
|
_pass_get $field | $TYPE_CMD
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user