Skip to content

Commit

Permalink
Merge pull request #2833 from kolyshkin/curl-retry
Browse files Browse the repository at this point in the history
curl: add --retry 5
  • Loading branch information
kolyshkin authored Mar 6, 2021
2 parents 497cd0c + e618a6d commit 59ad417
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
- name: install shellcheck
run: |
mkdir ~/bin
curl -sSfL $BASEURL/$VERSION/shellcheck-$VERSION.linux.x86_64.tar.xz |
curl -sSfL --retry 5 $BASEURL/$VERSION/shellcheck-$VERSION.linux.x86_64.tar.xz |
tar xfJ - -C ~/bin --strip 1 shellcheck-$VERSION/shellcheck
sha256sum ~/bin/shellcheck | grep -q $SHA256SUM
# make sure to remove the old version
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/get-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function get() {
exit 1
fi

if ! curl -o "$dest" -fsSL "$url"; then
if ! curl -o "$dest" -fsSL --retry 5 "$url"; then
echo "Failed to get $url" 1>&2
exit 1
fi
Expand Down

0 comments on commit 59ad417

Please sign in to comment.