diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 4d4cc75ce..02c59d384 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -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 diff --git a/tests/integration/get-images.sh b/tests/integration/get-images.sh index 4a5c92b4c..9f1bf96ad 100755 --- a/tests/integration/get-images.sh +++ b/tests/integration/get-images.sh @@ -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