-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix retry when downloading clang tools (#59806)
Invoke-WebRequest throws an exception when the download fails, so we should use try-catch instead of status code to check failure. We can use the generic Retry function from tools.ps1 to do this. In addition pass -PassThru to avoid leaving a corrupted download file in case the download fails. This will buffer the download and write it once at the end. Fix #57196
- Loading branch information
1 parent
909cddf
commit 5e4bd40
Showing
1 changed file
with
10 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters