Use 5 retries in curl (#23112)

This commit is contained in:
Hao Kung 2020-06-18 19:01:01 -07:00 committed by GitHub
parent 0dc6aa66a5
commit 0a02cd88b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -37,10 +37,10 @@ cleanup() {
trap "cleanup" EXIT
cd "$tmp"
curl -Lsfo $(basename $url) "$url"
curl -Lsfo $(basename $url) "$url" --retry 5
echo "Installing java from $(basename $url) $url"
mkdir $output_dir
echo "Unpacking to $output_dir"
tar --strip-components 1 -xzf "jdk-${java_version}_${platformarch}_bin.tar.gz" --no-same-owner --directory "$output_dir"
popd
popd

View File

@ -34,7 +34,7 @@ cleanup() {
trap "cleanup" EXIT
cd "$tmp"
curl -Lsfo $(basename $url) "$url"
curl -Lsfo $(basename $url) "$url" --retry 5
echo "Installing node from $(basename $url) $url"
mkdir $output_dir
echo "Unpacking to $output_dir"

View File

@ -6,7 +6,7 @@ scriptroot="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
reporoot="$(dirname "$(dirname "$scriptroot")")"
nginxinstall="$reporoot/.tools/nginx"
curl -sSL http://nginx.org/download/nginx-1.14.2.tar.gz | tar zxfv - -C /tmp && cd /tmp/nginx-1.14.2/
curl -sSL http://nginx.org/download/nginx-1.14.2.tar.gz --retry 5 | tar zxfv - -C /tmp && cd /tmp/nginx-1.14.2/
./configure --prefix=$nginxinstall --with-http_ssl_module --without-http_rewrite_module
make
make install