aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorpast-due <30942300+past-due@users.noreply.github.com>2019-06-19 15:08:42 -0400
committerRobert Schumacher <roschuma@microsoft.com>2019-06-19 12:08:42 -0700
commit4b0b0c57314cc0d73f7a666a2bc476153d6b42a2 (patch)
tree0a9ba542ad464fdf2fff937e009d8a5067de3663 /scripts
parent943aed271fe256ae683d522bb95d5c2d3f317339 (diff)
downloadvcpkg-4b0b0c57314cc0d73f7a666a2bc476153d6b42a2.tar.gz
vcpkg-4b0b0c57314cc0d73f7a666a2bc476153d6b42a2.zip
bootstrap.sh: Retry up to 3 times for transient download errors (#6952)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/bootstrap.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh
index 00d31760a..b0e4f98a5 100644
--- a/scripts/bootstrap.sh
+++ b/scripts/bootstrap.sh
@@ -100,7 +100,7 @@ vcpkgDownloadFile()
url=$1; downloadPath=$2 sha512=$3
vcpkgCheckRepoTool "curl"
rm -rf "$downloadPath.part"
- curl -L $url --create-dirs --output "$downloadPath.part" || exit 1
+ curl -L $url --create-dirs --retry 3 --output "$downloadPath.part" || exit 1
vcpkgCheckEqualFileHash $url "$downloadPath.part" $sha512
mv "$downloadPath.part" "$downloadPath"