openshift-tools-installer
openshift-tools-installer copied to clipboard
Download from actual location with mirror
Description
File location is not always in the same location as the directory. Fetch real url from dir listing when using mirror.
Related Issue(s)
#113 and probably #99
Checklist
- [X] This PR does not need a documentation change
- [X] This PR's changes are already tested
- [X] This change is not user-facing
- [X] This change is a patch change
Changes made
- created new function getFileURL to obtain mirror URL for a given file
- used it to generate file location for archive and hash
Thanks for the submission. I believe this should be fixed, however - there was a broken redirect that should now be working.