aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2016-05-24 19:01:16 +0200
committerRasmus Steinke <rasi@xssn.at>2016-05-24 19:01:16 +0200
commitef6b68abbfe3ecfdbcc38d77db2684846b91acf7 (patch)
tree0a8c66ae22aa03d4e01c4281dd0f579c18670b52
parentd0c4f41f5fb084ae8e27ca6b05ac20b0cfd8843c (diff)
downloadrofi-pass-ef6b68abbfe3ecfdbcc38d77db2684846b91acf7.tar.gz
quit on escape in insert menu
-rwxr-xr-xrofi-pass4
1 files changed, 4 insertions, 0 deletions
diff --git a/rofi-pass b/rofi-pass
index cb72650..a25ec78 100755
--- a/rofi-pass
+++ b/rofi-pass
@@ -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 () {