also set No Group on ESC
This commit is contained in:
parent
c49a623a1c
commit
49db6fce05
2
addpass
2
addpass
@ -58,7 +58,7 @@ printEntry () {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ $group == "No Group" ]]; then
|
if [[ "$group" == "No Group" || "$group" == "" ]]; then
|
||||||
printEntry | PASSWORD_STORE_DIR="${root}" pass insert -m "${Name}"
|
printEntry | PASSWORD_STORE_DIR="${root}" pass insert -m "${Name}"
|
||||||
else
|
else
|
||||||
printEntry | PASSWORD_STORE_DIR="${root}" pass insert -m "${group}/${Name}"
|
printEntry | PASSWORD_STORE_DIR="${root}" pass insert -m "${group}/${Name}"
|
||||||
|
@ -304,7 +304,7 @@ insertPass () {
|
|||||||
elif [[ $insertmenu == "* Accept Values and Add Password Entry" ]]; then
|
elif [[ $insertmenu == "* Accept Values and Add Password Entry" ]]; then
|
||||||
cd "${root}"
|
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 > ")
|
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}")
|
PASSWORD_STORE_DIR="${root}" pass insert -m -f "${name}" < <(echo -e "${pass}\nUserName: ${user}\n---\n${URL_field}: ${domain}")
|
||||||
else
|
else
|
||||||
PASSWORD_STORE_DIR="${root}" pass insert -m -f "${group}/${name}" < <(echo -e "${pass}\nUserName: ${user}\n---\n${URL_field}: ${domain}")
|
PASSWORD_STORE_DIR="${root}" pass insert -m -f "${group}/${name}" < <(echo -e "${pass}\nUserName: ${user}\n---\n${URL_field}: ${domain}")
|
||||||
|
Loading…
Reference in New Issue
Block a user