Skip to content

Commit c6d4ffc

Browse files
author
Christian Rebischke
authored
Merge pull request #61 from coderobe/patch-2
generic-ci: drop wget in favor of curl
2 parents 3346a2f + 1eeb5da commit c6d4ffc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

generic-ci.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ case $1 in
1010
PACKER_SHA256_SIG="https://releases.hashicorp.com/packer/$PACKER_CURRENT_VERSION/packer_${PACKER_CURRENT_VERSION}_SHA256SUMS.sig"
1111
HASHICORP_FINGERPRINT=91a6e7f85d05c65630bef18951852d87348ffc4c
1212
HASHICORP_KEY="https://keybase.io/hashicorp/pgp_keys.asc?fingerprint=${HASHICORP_FINGERPRINT}"
13-
wget "${PACKER_URL}"
14-
wget "${PACKER_SHA256}"
15-
wget "${PACKER_SHA256_SIG}"
16-
wget -O hashicorp.key "${HASHICORP_KEY}"
13+
curl -LO "${PACKER_URL}"
14+
curl -LO "${PACKER_SHA256}"
15+
curl -LO "${PACKER_SHA256_SIG}"
16+
wget -Lo hashicorp.key "${HASHICORP_KEY}"
1717
gpg --with-fingerprint --with-colons hashicorp.key | grep ${HASHICORP_FINGERPRINT^^}
1818
gpg --import hashicorp.key
1919
gpg --verify "packer_${PACKER_CURRENT_VERSION}_SHA256SUMS.sig" "packer_${PACKER_CURRENT_VERSION}_SHA256SUMS"
@@ -24,7 +24,7 @@ case $1 in
2424
;;
2525

2626
install-shfmt)
27-
curl -L https://github.com/mvdan/sh/releases/download/v2.6.4/shfmt_v2.6.4_linux_amd64 -o shfmt
27+
curl -Lo shfmt https://github.com/mvdan/sh/releases/download/v2.6.4/shfmt_v2.6.4_linux_amd64
2828
chmod +x ./shfmt
2929
;;
3030

0 commit comments

Comments
 (0)