diff options
author | Rasmus Steinke <rasi@xssn.at> | 2015-10-15 01:37:40 +0200 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2015-10-15 01:37:40 +0200 |
commit | 49db6fce0593b77ebdc4f81ce89de13fddb10e13 (patch) | |
tree | 789bd2f2d348ad6a18c935ec62037e00e9a197c4 | |
parent | c49a623a1c8d0c28edd3fcfb553a796e631e0e29 (diff) | |
download | rofi-pass-49db6fce0593b77ebdc4f81ce89de13fddb10e13.tar.gz |
also set No Group on ESC
-rwxr-xr-x | addpass | 2 | ||||
-rwxr-xr-x | rofi-pass | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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}" @@ -304,7 +304,7 @@ insertPass () { elif [[ $insertmenu == "* Accept Values and Add Password Entry" ]]; then cd "${root}" group=$(echo -e "No Group\n---\n$(find -type d -not -iwholename '*.git*' -printf '%d\t%P\n' | sort -r -nk1 | cut -f2-)" | _rofi -dmenu -p "Choose Group > ") - if [[ "$group" == "No Group" ]]; then + if [[ "$group" == "No Group" || "$group" == "" ]]; then PASSWORD_STORE_DIR="${root}" pass insert -m -f "${name}" < <(echo -e "${pass}\nUserName: ${user}\n---\n${URL_field}: ${domain}") else PASSWORD_STORE_DIR="${root}" pass insert -m -f "${group}/${name}" < <(echo -e "${pass}\nUserName: ${user}\n---\n${URL_field}: ${domain}") |