Skip to content

chore: use curl and compression for cli download#120

Merged
bastiandoetsch merged 1 commit intomasterfrom
chore/HEAD-332_use-curl-and-compressed-transfer-if-availble
May 24, 2023
Merged

chore: use curl and compression for cli download#120
bastiandoetsch merged 1 commit intomasterfrom
chore/HEAD-332_use-curl-and-compressed-transfer-if-availble

Conversation

@bastiandoetsch
Copy link
Copy Markdown
Contributor

No description provided.

@bastiandoetsch bastiandoetsch requested a review from a team as a code owner May 23, 2023 15:12

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}"
Copy link
Copy Markdown
Contributor

@j-luong j-luong May 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: looks like there's an extra whitespace at the end of the line

question: is it intentional that we write output to the snyk-${PREFIX} file? Wouldn't it be preferable to output to something like snyk-${PREFIX}.log?. nvm, I see what's happening

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--output is the file where the downloaded contents are saved into, e.g. snyk-macos

@bastiandoetsch bastiandoetsch merged commit b98d498 into master May 24, 2023
@bastiandoetsch bastiandoetsch deleted the chore/HEAD-332_use-curl-and-compressed-transfer-if-availble branch May 24, 2023 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants