simplify type menu too

This commit is contained in:
Rasmus Steinke 2015-11-15 04:51:51 +01:00
parent 6269688435
commit b2bef6af95

View File

@ -228,7 +228,7 @@ else unset helptext; mainMenu; fi
typeMenu () { typeMenu () {
checkIfPass checkIfPass
typefield=$(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 > ") typefield=$(echo -e "< Return\n---\npassword\n$(pass ${selected_password} | grep ': ' | awk -F ':' '{ print $1 }')" | _rofi -dmenu -p "Choose Field to type > ")
if [[ $typefield == "" ]]; then exit; if [[ $typefield == "" ]]; then exit;
elif [[ $typefield == "password" ]]; then typePass; elif [[ $typefield == "password" ]]; then typePass;
elif [[ $typefield == "< Return" ]]; then mainMenu; elif [[ $typefield == "< Return" ]]; then mainMenu;