diff options
author | Rasmus Steinke <rasi@xssn.at> | 2016-05-24 19:01:16 +0200 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2016-05-24 19:01:16 +0200 |
commit | ef6b68abbfe3ecfdbcc38d77db2684846b91acf7 (patch) | |
tree | 0a8c66ae22aa03d4e01c4281dd0f579c18670b52 | |
parent | d0c4f41f5fb084ae8e27ca6b05ac20b0cfd8843c (diff) | |
download | rofi-pass-ef6b68abbfe3ecfdbcc38d77db2684846b91acf7.tar.gz |
quit on escape in insert menu
-rwxr-xr-x | rofi-pass | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -398,6 +398,9 @@ insertPass () { if [[ -z "$name" ]]; then name="Empty"; fi insertmenu=$(echo -e "0 Return to Main Menu\n* Accept Values and Add Password Entry\n---\n1 Name ($name)\n2 URL ($domain)\n3 User ($user)\n4 Password ($pass2)" | _rofi -dmenu -mesg "<span color='$help_color'>For faster adding use the addpass command</span>" -p "Add Entry > ") + insert_val=$? + if [[ $insert_val -eq 1 ]]; then exit + else if [[ $insertmenu == "0 Return to Main Menu" ]]; then mainMenu elif [[ $insertmenu == "" ]]; then exit elif [[ $insertmenu == "* Accept Values and Add Password Entry" ]]; then @@ -438,6 +441,7 @@ insertPass () { else insertPass fi + fi } password_gen () { |