Skip to content

Commit 53dd3b5

Browse files
Merge pull request #45 from codecov/th/make-curl-loud
fix: make curl loud
2 parents fc1e2e7 + 4621cca commit 53dd3b5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

dist/codecov.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ else
8282
cc_url="$cc_url/${CC_VERSION}"
8383
cc_url="$cc_url/${CC_OS}/${cc_filename}"
8484
say "$g ->$x Downloading $b${cc_url}$x"
85-
curl -Os "$cc_url"
85+
curl -O --retry 5 --retry-delay 2 "$cc_url"
8686
say "$g==>$x Finishing downloading $b${CC_OS}:${CC_VERSION}$x"
8787
version_url="https://cli.codecov.io/api/${CC_OS}/${CC_VERSION}"
8888
version=$(curl -s "$version_url" -H "Accept:application/json" | tr \{ '\n' | tr , '\n' | tr \} '\n' | grep "\"version\"" | awk -F'"' '{print $4}' | tail -1)

scripts/download.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ else
3535
codecov_url="$codecov_url/${CODECOV_VERSION}"
3636
codecov_url="$codecov_url/${CODECOV_OS}/${codecov_filename}"
3737
say "$g ->$x Downloading $b${codecov_url}$x"
38-
curl -Os "$codecov_url"
38+
curl -O --retry 5 --retry-delay 2 "$codecov_url"
3939
say "$g==>$x Finishing downloading $b${CODECOV_OS}:${CODECOV_VERSION}$x"
4040

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

0 commit comments

Comments
 (0)