diff options
-rwxr-xr-x | bin/guiscripts/fillpass | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/guiscripts/fillpass b/bin/guiscripts/fillpass index 87e74ca..358afd1 100755 --- a/bin/guiscripts/fillpass +++ b/bin/guiscripts/fillpass @@ -9,5 +9,7 @@ pass="$( login="$(pass show "$pass" | awk '/^login:/ {print $2}')" password="$(pass show "$pass" | head -n 1)" -printf '%s\t%s\n' "$login" "$password" | - ydotool type -f - +if [ "$login" ] +then printf '%s\t%s\n' "$login" "$password" | ydotool type -f - +else printf '%s\n' "$password" | ydotool type -f - +fi |