bootstrap.sh: Retry up to 3 times for transient download errors (#6952)

This commit is contained in:
past-due 2019-06-19 15:08:42 -04:00 committed by Robert Schumacher
parent 943aed271f
commit 4b0b0c5731

View File

@ -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"