From 71a462d5eb243a5f376910441191decce74b970d Mon Sep 17 00:00:00 2001 From: jdreichmann Date: Sun, 7 Jun 2020 17:00:24 +0200 Subject: [PATCH] ansible-gpg-vault: make script work in a submodule env --- vault.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vault.sh b/vault.sh index e3b534d..a573abe 100755 --- a/vault.sh +++ b/vault.sh @@ -5,7 +5,7 @@ set -e -u # Keyserver to use. You need to trust this keyserver that the uid is not spoofed when receiving keys KEYSERVER="" -REPO_BASE_PATH="`pwd`/../ansible-gpg-vault-store" +REPO_BASE_PATH="`dirname "$0"`/../ansible-gpg-vault-store" # File in which the passphrase for the gpg vault is encrypted VAULT_PASS_FILE="$REPO_BASE_PATH/vault_passphrase.gpg" # File which contains a list of fingerprints to receive and encrypt the vault for