Skip to content

Commit 0e926b9

Browse files
committed
Create temporary GNUPG home
1 parent 3d40d03 commit 0e926b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hashiext-download.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ download() {
3535
wget -O SHA256SUMS "${sha256sums}"
3636
wget -O SHA256SUMS.sig "${sha256sums_sig}"
3737

38+
export GNUPGHOME=$(mktemp -d)
39+
trap 'rm -rf $GNUPG_HOME' EXIT
3840
if ! gpg --verify --no-default-keyring --keyring ${origdir}/resources/hashicorp-signing-key.72D7468F.gpg SHA256SUMS.sig SHA256SUMS
3941
then
4042
echo "GPG signature verification failed!"

0 commit comments

Comments
 (0)