From be7efa87a18c2f8cf32be90996a9dda2923924c9 Mon Sep 17 00:00:00 2001 From: mrjk Date: Wed, 28 Mar 2018 11:02:13 -0400 Subject: [PATCH] Fix: mod_pass: PASSWORD_STORE_DIR dir creation --- lib/idmgr_mod_pass.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/idmgr_mod_pass.sh b/lib/idmgr_mod_pass.sh index 9f2be02..d96c639 100644 --- a/lib/idmgr_mod_pass.sh +++ b/lib/idmgr_mod_pass.sh @@ -67,7 +67,10 @@ idm_pass__enable () local id=${1} ! lib_id_has_config $id - echo "export PASSWORD_STORE_DIR=~/.config/pass/${id}" + PASSWORD_STORE_DIR=~/.config/pass/${id} + [ -d "${PASSWORD_STORE_DIR}" ] || mkdir -p "${PASSWORD_STORE_DIR}" + + echo "export PASSWORD_STORE_DIR=$PASSWORD_STORE_DIR" }