From 0dfa85e3dbbe40e2f7fa11c749bea3253492e9b4 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sat, 8 Sep 2012 18:49:26 +0200 Subject: Only copy the first line of the password file to the clipboard. --- src/password-store.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/password-store.sh') diff --git a/src/password-store.sh b/src/password-store.sh index e22e8c9..2e1d14b 100755 --- a/src/password-store.sh +++ b/src/password-store.sh @@ -134,7 +134,7 @@ case "$command" in if [ $clip -eq 0 ]; then exec gpg -q -d "$passfile" else - clip "$(gpg -q -d "$passfile")" "$path" + clip "$(gpg -q -d "$passfile" | head -n 1)" "$path" fi fi ;; -- cgit v1.2.3-59-g8ed1b