scripts: Pass --retry 3 to curl.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2022-11-07 13:50:24 -08:00
committed by Tim Abbott
parent c2cbc57bc4
commit fc9f23a85f
11 changed files with 13 additions and 13 deletions

View File

@@ -8,7 +8,7 @@ tmpdir="$(mktemp -d)"
trap 'rm -r "$tmpdir"' EXIT
cd "$tmpdir"
tarball="pgroonga-$version.tar.gz"
curl -fLO "https://packages.groonga.org/source/pgroonga/$tarball"
curl -fLO --retry 3 "https://packages.groonga.org/source/pgroonga/$tarball"
sha256sum -c <<<"$sha256 $tarball"
tar -xzf "$tarball"
cd "pgroonga-$version"

View File

@@ -24,7 +24,7 @@ if ! check_version 2>/dev/null; then
tmpdir="$(mktemp -d)"
trap 'rm -r "$tmpdir"' EXIT
cd "$tmpdir"
curl_opts=(-fLO)
curl_opts=(-fLO --retry 3)
if [ -n "${CUSTOM_CA_CERTIFICATES:-}" ]; then
curl_opts+=(--cacert "${CUSTOM_CA_CERTIFICATES}")
fi

View File

@@ -18,7 +18,7 @@ if ! check_version; then
tmpdir="$(mktemp -d)"
trap 'rm -r "$tmpdir"' EXIT
cd "$tmpdir"
curl -fLO "https://registry.npmjs.org/yarn/-/$tarball"
curl -fLO --retry 3 "https://registry.npmjs.org/yarn/-/$tarball"
sha256sum -c <<<"$sha256 $tarball"
rm -rf /srv/zulip-yarn
mkdir /srv/zulip-yarn