forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Invoke-WebRequest throws an exception when the download fails, so we should use try-catch instead of status code to check failure. 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 dotnet#57196
- Loading branch information
1 parent
72d643d
commit 4f2331d
Showing
1 changed file
with
15 additions
and
15 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