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,7 +37,7 @@ cleanup() {
trap "cleanup" EXIT trap "cleanup" EXIT
cd "$tmp" cd "$tmp"
curl -Lsfo $(basename $url) "$url" curl -Lsfo $(basename $url) "$url" --retry 5
echo "Installing java from $(basename $url) $url" echo "Installing java from $(basename $url) $url"
mkdir $output_dir mkdir $output_dir
echo "Unpacking to $output_dir" echo "Unpacking to $output_dir"

View File

@ -34,7 +34,7 @@ cleanup() {
trap "cleanup" EXIT trap "cleanup" EXIT
cd "$tmp" cd "$tmp"
curl -Lsfo $(basename $url) "$url" curl -Lsfo $(basename $url) "$url" --retry 5
echo "Installing node from $(basename $url) $url" echo "Installing node from $(basename $url) $url"
mkdir $output_dir mkdir $output_dir
echo "Unpacking to $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")")" reporoot="$(dirname "$(dirname "$scriptroot")")"
nginxinstall="$reporoot/.tools/nginx" 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 ./configure --prefix=$nginxinstall --with-http_ssl_module --without-http_rewrite_module
make make
make install make install