Use PASSWORD_STORE_DIR
This commit is contained in:
4
bin/pass
4
bin/pass
@@ -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
|
||||
|
||||
@@ -44,6 +44,8 @@ export XDG_STATE_HOME="$HOME/.local/state"
|
||||
|
||||
export GNUPGHOME="$HOME/.gnupg"
|
||||
|
||||
export PASSWORD_STORE_DIR="$HOME/.password-store"
|
||||
|
||||
umask 0022
|
||||
|
||||
{% set env = machine.environment | combine(user.environment) %}
|
||||
|
||||
Reference in New Issue
Block a user