Use PASSWORD_STORE_DIR

This commit is contained in:
2024-04-14 01:33:43 +02:00
parent ba066166fe
commit 5ed1650b02
2 changed files with 4 additions and 2 deletions

View File

@@ -3,10 +3,10 @@
set -o nounset
set -o errexit
if [[ ! -e ~/.password-store ]] ; then
if [[ ! -e "${PASSWORD_STORE_DIR}" ]] ; then
printf '%s\n' 'This is the first time running pass, initializting repository ...'
git clone ssh://git@code.hkoerber.de:2222/hannes/passwordstore.git ~/.password-store
git clone ssh://git@code.hkoerber.de:2222/hannes/passwordstore.git "${PASSWORD_STORE_DIR}"
printf '%s\n' 'Done'
fi