From 864e089f6950571cce29c2f209c92bb3faf8ef92 Mon Sep 17 00:00:00 2001 From: Rootul Patel Date: Thu, 5 Oct 2023 18:13:25 -0400 Subject: [PATCH] fix: script relative dirs --- scripts/signing/verify-signature.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/signing/verify-signature.sh b/scripts/signing/verify-signature.sh index e2da7e41ab..c92c24cfd1 100755 --- a/scripts/signing/verify-signature.sh +++ b/scripts/signing/verify-signature.sh @@ -1,6 +1,9 @@ #!/bin/bash -KEYS_DIR="./keys" +# DIR is the directory of this script +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +# KEYS_DIR is the directory of the keys +KEYS_DIR="$DIR/keys" echo "Importing the public keys in $KEYS_DIR" @@ -11,6 +14,7 @@ for key in "$KEYS_DIR"/*; do # Import the key echo "Importing $key" gpg --import "$key" + echo "Imported $key" fi done