From 6269688435bab40e3c19695765a2c51178d65689 Mon Sep 17 00:00:00 2001 From: Rasmus Steinke Date: Sun, 15 Nov 2015 04:49:10 +0100 Subject: [PATCH] simplify detection of fieldnames --- rofi-pass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rofi-pass b/rofi-pass index 31834fa..143d7b2 100755 --- a/rofi-pass +++ b/rofi-pass @@ -238,7 +238,7 @@ typeMenu () { copyMenu () { checkIfPass - copyfield=$(echo -e "< Return\n---\npassword\n$(pass ${selected_password} | awk -F ':' '{ print $1 }' | grep -Ev '\-\-\-' | tail -n +2)" | _rofi -dmenu -p "Choose Field to type > ") + copyfield=$(echo -e "< Return\n---\npassword\n$(pass ${selected_password} | grep ': ' | awk -F ':' '{ print $1 }')" | _rofi -dmenu -p "Choose Field to type > ") if [[ $copyfield == "" ]]; then exit; elif [[ $copyfield == "password" ]]; then copyPass; elif [[ $copyfield == "< Return" ]]; then mainMenu;