Skip to content

Commit

Permalink
chore: use curl and compression for cli download
Browse files Browse the repository at this point in the history
  • Loading branch information
bastiandoetsch committed May 24, 2023
1 parent 8061827 commit b98d498
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup/setup_snyk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ esac
chmod +x snyk
sudo mv snyk /usr/local/bin

wget --progress=bar:force:noscroll "$BASE_URL/$VERSION/snyk-${PREFIX}"
wget --progress=bar:force:noscroll "$BASE_URL/$VERSION/snyk-${PREFIX}.sha256"
curl --compressed --retry 2 --output snyk-${PREFIX} "$BASE_URL/$VERSION/snyk-${PREFIX}"
curl --compressed --retry 2 --output snyk-${PREFIX}.sha256 "$BASE_URL/$VERSION/snyk-${PREFIX}.sha256"

sha256sum -c snyk-${PREFIX}.sha256
chmod +x snyk-${PREFIX}
Expand Down

0 comments on commit b98d498

Please sign in to comment.