diff options
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 |