summaryrefslogtreecommitdiff
path: root/init-tools.sh
diff options
context:
space:
mode:
authorJoel Hendrix <jhendrix@microsoft.com>2016-05-26 10:01:38 -0700
committerJoel Hendrix <jhendrix@microsoft.com>2016-05-26 10:01:38 -0700
commit2fab93aebd5365ea3716a4a4d3b87d6047698e09 (patch)
tree85f3347204947ed41e9fd9efb1ff1865b1962a2c /init-tools.sh
parent7823f314a3b846c9f04f63653d8f1a1cd5d0a269 (diff)
downloadcoreclr-2fab93aebd5365ea3716a4a4d3b87d6047698e09.tar.gz
coreclr-2fab93aebd5365ea3716a4a4d3b87d6047698e09.tar.bz2
coreclr-2fab93aebd5365ea3716a4a4d3b87d6047698e09.zip
Add retry logic when downloading the CLI from Azure blob storage.
Downloading from Azure can transiently fail for a number of reasons. Add some retry logic when downloading to avoid transient failures. For *nix variants add a retry value when using curl (wget retries by default).
Diffstat (limited to 'init-tools.sh')
-rwxr-xr-xinit-tools.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/init-tools.sh b/init-tools.sh
index 759a2ec89a..45009d4c8d 100755
--- a/init-tools.sh
+++ b/init-tools.sh
@@ -96,8 +96,8 @@ if [ ! -e $__PROJECT_JSON_FILE ]; then
wget -q -O $__DOTNET_PATH/dotnet.tar $__CLIDownloadURL
echo "wget -q -O $__DOTNET_PATH/dotnet.tar $__CLIDownloadURL"
else
- curl -sSL --create-dirs -o $__DOTNET_PATH/dotnet.tar $__CLIDownloadURL
- echo "curl -sSL --create-dirs -o $__DOTNET_PATH/dotnet.tar $__CLIDownloadURL"
+ curl --retry 10 -sSL --create-dirs -o $__DOTNET_PATH/dotnet.tar $__CLIDownloadURL
+ echo "curl --retry 10 -sSL --create-dirs -o $__DOTNET_PATH/dotnet.tar $__CLIDownloadURL"
fi
cd $__DOTNET_PATH
tar -xf $__DOTNET_PATH/dotnet.tar