Skip to content

Commit

Permalink
fix: script relative dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
rootulp committed Oct 5, 2023
1 parent 374a97e commit 864e089
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/signing/verify-signature.sh
Original file line number Diff line number Diff line change
@@ -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"

Expand All @@ -11,6 +14,7 @@ for key in "$KEYS_DIR"/*; do
# Import the key
echo "Importing $key"
gpg --import "$key"
echo "Imported $key"
fi
done

Expand Down

0 comments on commit 864e089

Please sign in to comment.