aboutsummaryrefslogtreecommitdiffstats
path: root/addpass
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2015-10-15 09:54:28 +0200
committerRasmus Steinke <rasi@xssn.at>2015-10-15 09:54:28 +0200
commit8eef49fd4f7731a32466616e7f816c2915b6a534 (patch)
treeca7ff7f3d37aa7e02787f0732fbee21e74a7b77e /addpass
parent49db6fce0593b77ebdc4f81ce89de13fddb10e13 (diff)
downloadrofi-pass-8eef49fd4f7731a32466616e7f816c2915b6a534.tar.gz
exit on ESC
Diffstat (limited to 'addpass')
-rwxr-xr-xaddpass4
1 files changed, 3 insertions, 1 deletions
diff --git a/addpass b/addpass
index 2d0f82f..a941d54 100755
--- a/addpass
+++ b/addpass
@@ -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