Skip to content

Commit b98d498

Browse files
chore: use curl and compression for cli download
1 parent 8061827 commit b98d498

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup/setup_snyk.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ esac
5353
chmod +x snyk
5454
sudo mv snyk /usr/local/bin
5555

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

5959
sha256sum -c snyk-${PREFIX}.sha256
6060
chmod +x snyk-${PREFIX}

0 commit comments

Comments
 (0)