mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 03:10:57 +08:00
bootstrap.sh: Retry up to 3 times for transient download errors (#6952)
This commit is contained in:
parent
943aed271f
commit
4b0b0c5731
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user