diff options
author | Rasmus Steinke <rasi@xssn.at> | 2015-10-15 09:54:28 +0200 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2015-10-15 09:54:28 +0200 |
commit | 8eef49fd4f7731a32466616e7f816c2915b6a534 (patch) | |
tree | ca7ff7f3d37aa7e02787f0732fbee21e74a7b77e /addpass | |
parent | 49db6fce0593b77ebdc4f81ce89de13fddb10e13 (diff) | |
download | rofi-pass-8eef49fd4f7731a32466616e7f816c2915b6a534.tar.gz |
exit on ESC
Diffstat (limited to 'addpass')
-rwxr-xr-x | addpass | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -58,8 +58,10 @@ printEntry () { done } -if [[ "$group" == "No Group" || "$group" == "" ]]; then +if [[ "$group" == "No Group" ]]; then printEntry | PASSWORD_STORE_DIR="${root}" pass insert -m "${Name}" +elif [[ "$group" == "" ]]; then + exit else printEntry | PASSWORD_STORE_DIR="${root}" pass insert -m "${group}/${Name}" fi |