diff --git a/dist/codecov.sh b/dist/codecov.sh index 065c30d..244e360 100755 --- a/dist/codecov.sh +++ b/dist/codecov.sh @@ -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) diff --git a/scripts/download.sh b/scripts/download.sh index 1c084aa..3d8c2c1 100755 --- a/scripts/download.sh +++ b/scripts/download.sh @@ -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}"