aboutsummaryrefslogtreecommitdiffstats
path: root/addpass
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2015-10-15 01:37:40 +0200
committerRasmus Steinke <rasi@xssn.at>2015-10-15 01:37:40 +0200
commit49db6fce0593b77ebdc4f81ce89de13fddb10e13 (patch)
tree789bd2f2d348ad6a18c935ec62037e00e9a197c4 /addpass
parentc49a623a1c8d0c28edd3fcfb553a796e631e0e29 (diff)
downloadrofi-pass-49db6fce0593b77ebdc4f81ce89de13fddb10e13.tar.gz
also set No Group on ESC
Diffstat (limited to 'addpass')
-rwxr-xr-xaddpass2
1 files changed, 1 insertions, 1 deletions
diff --git a/addpass b/addpass
index a34ec2a..2d0f82f 100755
--- a/addpass
+++ b/addpass
@@ -58,7 +58,7 @@ printEntry () {
done
}
-if [[ $group == "No Group" ]]; then
+if [[ "$group" == "No Group" || "$group" == "" ]]; then
printEntry | PASSWORD_STORE_DIR="${root}" pass insert -m "${Name}"
else
printEntry | PASSWORD_STORE_DIR="${root}" pass insert -m "${group}/${Name}"