Skip to content

Commit

Permalink
fix: make curl loud
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrockhu-codecov committed Jan 22, 2025
1 parent fc1e2e7 commit 4621cca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/codecov.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ else
cc_url="$cc_url/${CC_VERSION}"
cc_url="$cc_url/${CC_OS}/${cc_filename}"
say "$g ->$x Downloading $b${cc_url}$x"
curl -Os "$cc_url"
curl -O --retry 5 --retry-delay 2 "$cc_url"
say "$g==>$x Finishing downloading $b${CC_OS}:${CC_VERSION}$x"
version_url="https://cli.codecov.io/api/${CC_OS}/${CC_VERSION}"
version=$(curl -s "$version_url" -H "Accept:application/json" | tr \{ '\n' | tr , '\n' | tr \} '\n' | grep "\"version\"" | awk -F'"' '{print $4}' | tail -1)
Expand Down
2 changes: 1 addition & 1 deletion scripts/download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ else
codecov_url="$codecov_url/${CODECOV_VERSION}"
codecov_url="$codecov_url/${CODECOV_OS}/${codecov_filename}"
say "$g ->$x Downloading $b${codecov_url}$x"
curl -Os "$codecov_url"
curl -O --retry 5 --retry-delay 2 "$codecov_url"
say "$g==>$x Finishing downloading $b${CODECOV_OS}:${CODECOV_VERSION}$x"

version_url="https://cli.codecov.io/api/${CODECOV_OS}/${CODECOV_VERSION}"
Expand Down

0 comments on commit 4621cca

Please sign in to comment.