add return options
This commit is contained in:
parent
c66fabf4d0
commit
fb38d4ef9b
@ -225,29 +225,32 @@ else unset help; mainMenu; fi
|
|||||||
|
|
||||||
typeMenu () {
|
typeMenu () {
|
||||||
checkIfPass
|
checkIfPass
|
||||||
typefield=$(echo -e "password\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} | awk -F ':' '{ print $1 }' | grep -Ev '\-\-\-' | tail -n +2)" | 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;
|
||||||
else typeField
|
else typeField
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
copyMenu () {
|
copyMenu () {
|
||||||
checkIfPass
|
checkIfPass
|
||||||
copyfield=$(echo -e "password\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} | awk -F ':' '{ print $1 }' | grep -Ev '\-\-\-' | tail -n +2)" | rofi -dmenu -p "Choose Field to type > ")
|
||||||
if [[ $copyfield == "" ]]; then exit;
|
if [[ $copyfield == "" ]]; then exit;
|
||||||
elif [[ $copyfield == "password" ]]; then copyPass;
|
elif [[ $copyfield == "password" ]]; then copyPass;
|
||||||
|
elif [[ $copyfield == "< Return" ]]; then mainMenu;
|
||||||
else copyField
|
else copyField
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
actionMenu () {
|
actionMenu () {
|
||||||
checkIfPass
|
checkIfPass
|
||||||
action=$(echo -e "1 Move Password File\n2 Delete Password File\\n3 Edit Password File\n4 Generate New Password" | rofi -dmenu -p "Choose Action > ")
|
action=$(echo -e "< Return\n---\n1 Move Password File\n2 Delete Password File\\n3 Edit Password File\n4 Generate New Password" | rofi -dmenu -p "Choose Action > ")
|
||||||
if [[ ${action} == "1 Move Password File" ]]; then manageEntry move;
|
if [[ ${action} == "1 Move Password File" ]]; then manageEntry move;
|
||||||
elif [[ ${action} == "2 Delete Password File" ]]; then manageEntry delete;
|
elif [[ ${action} == "2 Delete Password File" ]]; then manageEntry delete;
|
||||||
elif [[ ${action} == "3 Edit Password File" ]]; then manageEntry edit;
|
elif [[ ${action} == "3 Edit Password File" ]]; then manageEntry edit;
|
||||||
elif [[ ${action} == "4 Generate New Password" ]]; then generatePass;
|
elif [[ ${action} == "4 Generate New Password" ]]; then generatePass;
|
||||||
|
elif [[ ${action} == "< Return" ]]; then mainMenu;
|
||||||
elif [[ ${action} == "" ]]; then exit
|
elif [[ ${action} == "" ]]; then exit
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user