Skip to content

Commit

Permalink
Retry downloading if failed
Browse files Browse the repository at this point in the history
Downloading may sometimes fail. Retry once.
  • Loading branch information
k-takata committed Jul 30, 2020
1 parent e4acbdc commit 5c3e43b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions appveyor.bat
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,10 @@ goto :eof
:: ----------------------------------------------------------------------
:: call :downloadfile <URL> <localfile>
if not exist %2 (
curl -f -L %1 -o %2
)
if ERRORLEVEL 1 (
rem Retry once.
curl -f -L %1 -o %2 || exit 1
)
@goto :eof

0 comments on commit 5c3e43b

Please sign in to comment.