diff --git a/git-wrapper.sh b/git-wrapper.sh index e5c7c7f..b81752d 100755 --- a/git-wrapper.sh +++ b/git-wrapper.sh @@ -2,7 +2,7 @@ $(dirname $0)/git.bin "$@" EC=$? -if [ "$1" = "checkout" -a -d ".git-crypt" -a -f ".git-crypt-key" -a ! "$GIT_CRYPT_RUNNING" = "true" ]; then +if [ "$1" = "checkout" -a -f ".git-crypt-key" -a ! "$GIT_CRYPT_RUNNING" = "true" ]; then export GIT_CRYPT_RUNNING=true export VAULT_TOKEN=$(vault write -field=token auth/approle/login role_id="${VAULT_ROLE_ID:-}")