Make prep.sh fail when it fails to download archives (#18812)
This commit is contained in:
parent
d23aa136ea
commit
83bf55b047
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ function DownloadArchive {
|
|||
archiveUrl="https://dotnetcli.azureedge.net/source-built-artifacts/assets/Private.SourceBuilt.$archiveType.$archiveVersion.$archiveRid.tar.gz"
|
||||
|
||||
echo " Downloading source-built $archiveType from $archiveUrl..."
|
||||
(cd "$packagesArchiveDir" && curl --retry 5 -O "$archiveUrl")
|
||||
(cd "$packagesArchiveDir" && curl -f --retry 5 -O "$archiveUrl")
|
||||
elif [ "$isRequired" == true ]; then
|
||||
echo " ERROR: $notFoundMessage"
|
||||
exit 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue