From eda475db8b1ce2d9dea6eb7a88d9027ec38a6253 Mon Sep 17 00:00:00 2001 From: Rasmus Steinke Date: Tue, 24 May 2016 23:21:23 +0200 Subject: [PATCH] respect PASSWORD_DIR --- rofi-pass | 4 ++-- 1 file 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 }