The problem you're addressing (if any)
Sometimes one of the downloads might fail due to very temporary problems.
Describe the solution you'd like
Add 2-3 tries to each download. Maybe wrap each wget/curl into separate function.
Adding --retry-connrefused to wget might be enough (check if it applies to other errors e.g 503)
Where is the value to a user, and who might that user be?
No response
Describe alternatives you've considered
No response
Additional context
No response