Skip to content

Commit

Permalink
chore: add retry-all-errors curl parameter (#95) (#96)
Browse files Browse the repository at this point in the history
Co-authored-by: Brian Gomes Bascoy <338659+pera@users.noreply.github.com>
  • Loading branch information
bastiandoetsch and pera authored May 25, 2023
1 parent 0afea9a commit d7445ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ steps:
if [[ ! -x "/tmp/snyk" ]]; then
SNYK_CLI_VERSION=$(cat "/tmp/.snyk-version")
echo "Downloading Snyk CLI version ${SNYK_CLI_VERSION}"
curl -sO --retry 6 https://static.snyk.io/cli/v${SNYK_CLI_VERSION}/snyk-<<parameters.os>>
curl -sO --retry 6 https://static.snyk.io/cli/v${SNYK_CLI_VERSION}/snyk-<<parameters.os>>.sha256
curl -sO --retry 6 --retry-all-errors https://static.snyk.io/cli/v${SNYK_CLI_VERSION}/snyk-<<parameters.os>>
curl -sO --retry 6 --retry-all-errors https://static.snyk.io/cli/v${SNYK_CLI_VERSION}/snyk-<<parameters.os>>.sha256
sha256sum -c snyk-<<parameters.os>>.sha256
sudo mv snyk-<<parameters.os>> /tmp/snyk
sudo chmod +x /tmp/snyk
Expand Down

0 comments on commit d7445ec

Please sign in to comment.