aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2016-05-24 23:21:23 +0200
committerRasmus Steinke <rasi@xssn.at>2016-05-24 23:21:23 +0200
commiteda475db8b1ce2d9dea6eb7a88d9027ec38a6253 (patch)
treeb92d35d4b1621bc66aede6f9f7fc3c0f0bcbe7ce
parent160e5d11df28ccb3fad4178a5f73a735ac52963f (diff)
downloadrofi-pass-eda475db8b1ce2d9dea6eb7a88d9027ec38a6253.tar.gz
respect PASSWORD_DIR
-rwxr-xr-xrofi-pass4
1 files changed, 2 insertions, 2 deletions
diff --git a/rofi-pass b/rofi-pass
index 8cd440b..f3b5b09 100755
--- a/rofi-pass
+++ b/rofi-pass
@@ -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
}