Skip to content

Commit 8ad7f9c

Browse files
fix: add retries
1 parent 88c6239 commit 8ad7f9c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dist/codecov.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ CC_PUBLIC_PGP_KEY=$(curl https://keybase.io/codecovsecurity/pgp_keys.asc)
9696
say "$g ->$x Downloading $b${sha_url}$x"
9797
say "$g ->$x Downloading $b${sha_url}.sig$x"
9898
say " "
99-
curl -Os "$sha_url"
100-
curl -Os "${sha_url}.sig"
99+
curl -Os --retry 5 --retry-delay 2 --connect-timeout 2 "$sha_url"
100+
curl -Os --retry 5 --retry-delay 2 --connect-timeout 2 "${sha_url}.sig"
101101
if ! gpg --verify "${cc_filename}.SHA256SUM.sig" "${cc_filename}.SHA256SUM";
102102
then
103103
exit_if_error "Could not verify signature. Please contact Codecov if problem continues"

scripts/validate.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ else
1616
say "$g ->$x Downloading $b${sha_url}.sig$x"
1717
say " "
1818

19-
curl -Os "$sha_url"
20-
curl -Os "${sha_url}.sig"
19+
curl -Os --retry 5 --retry-delay 2 --connect-timeout 2 "$sha_url"
20+
curl -Os --retry 5 --retry-delay 2 --connect-timeout 2 "${sha_url}.sig"
2121

2222
if ! gpg --verify "${codecov_filename}.SHA256SUM.sig" "${codecov_filename}.SHA256SUM";
2323
then

0 commit comments

Comments
 (0)