Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use curl and compression for cli download #120

Conversation

bastiandoetsch
Copy link
Contributor

No description provided.

@bastiandoetsch bastiandoetsch requested a review from a team as a code owner May 23, 2023 15:12
@@ -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}"
Copy link
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
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