From 05a219587336d51203196f5f809d1c5d9d93af7c Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sat, 22 Sep 2012 19:47:55 +0200 Subject: Allow git repo to be elsewhere via env var. --- src/password-store.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/password-store.sh b/src/password-store.sh index 21f8fe4..b28e408 100755 --- a/src/password-store.sh +++ b/src/password-store.sh @@ -7,11 +7,11 @@ umask 077 PREFIX="${PASSWORD_STORE_DIR:-$HOME/.password-store}" ID="$PREFIX/.gpg-id" -GIT_DIR="$PREFIX/.git" +GIT_DIR="${PASSWORD_STORE_GIT:-$PREFIX}/.git" GPG_OPTS="--quiet --yes --batch" export GIT_DIR -export GIT_WORK_TREE="$PREFIX" +export GIT_WORK_TREE="${PASSWORD_STORE_GIT:-$PREFIX}" version() { cat <<_EOF -- cgit v1.2.3