diff options
author | Rasmus Steinke <rasi@xssn.at> | 2015-11-15 04:49:10 +0100 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2015-11-15 04:49:10 +0100 |
commit | 6269688435bab40e3c19695765a2c51178d65689 (patch) | |
tree | 4bf8fe06e9806063a4a02cf96f18ab09d79dfbc3 | |
parent | 6a3db43ff09a52da9729a9678341f9c59ceb85b3 (diff) | |
download | rofi-pass-6269688435bab40e3c19695765a2c51178d65689.tar.gz |
simplify detection of fieldnames
-rwxr-xr-x | rofi-pass | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |