simplify detection of fieldnames

This commit is contained in:
Rasmus Steinke 2015-11-15 04:49:10 +01:00
parent 6a3db43ff0
commit 6269688435

View File

@ -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;