aboutsummaryrefslogtreecommitdiffstats
path: root/addpass
diff options
context:
space:
mode:
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