From 6f0a7bc942e633d93f4d996a1bf3ee0792d1e3d2 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 8 Oct 2023 13:17:50 +0200 Subject: added check if there is a login --- bin/guiscripts/fillpass | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bin/guiscripts') 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 -- cgit v1.2.3