diff options
author | Rasmus Steinke <rasi@xssn.at> | 2016-05-24 23:21:23 +0200 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2016-05-24 23:21:23 +0200 |
commit | eda475db8b1ce2d9dea6eb7a88d9027ec38a6253 (patch) | |
tree | b92d35d4b1621bc66aede6f9f7fc3c0f0bcbe7ce | |
parent | 160e5d11df28ccb3fad4178a5f73a735ac52963f (diff) | |
download | rofi-pass-eda475db8b1ce2d9dea6eb7a88d9027ec38a6253.tar.gz |
respect PASSWORD_DIR
-rwxr-xr-x | rofi-pass | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -398,10 +398,10 @@ insertPass () { if [[ "$group" == "No Group" ]]; then echo $EDITOR - echo -e "PASS\n---\nuser: $user" | pass insert -m "${name}" > /dev/null && pass generate -ni "${name}" "${password_length}" >/dev/null && pass edit "${name}" + echo -e "PASS\n---\nuser: $user" | PASSWORD_STORE_DIR="${root}" pass insert -m "${name}" > /dev/null && PASSWORD_STORE_DIR="${root}" pass generate -ni "${name}" "${password_length}" >/dev/null && PASSWORD_STORE_DIR="${root}" pass edit "${name}" else echo $EDITOR - echo -e "PASS\n---\nuser: $user" | pass insert -m "${group}/${name}" > /dev/null && pass generate -ni "${group}/${name}" "${password_length}" >/dev/null && pass edit "${group}/${name}" + echo -e "PASS\n---\nuser: $user" | PASSWORD_STORE_DIR="${root}" pass insert -m "${group}/${name}" > /dev/null && PASSWORD_STORE_DIR="${root}" pass generate -ni "${group}/${name}" "${password_length}" >/dev/null && PASSWORD_STORE_DIR="${root}" pass edit "${group}/${name}" fi } |