fix(scripts): Replace invalid curl --clobber with wget --clobber
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
What does this merge request do and why?
This merge request fixes the script by replacing the unsupported curl --clobber option with the correct -O flag. The -O flag instructs curl to overwrite an existing file when downloading. The --clobber option is not valid for curl (it belongs to wget), which caused the script to fail when attempting to download files. Updating it ensures the script runs successfully and downloaded files are saved as expected.
How to set up and validate locally
With wget this scripts works just fine
Impacted categories
The following categories relate to this merge request:
-
gdk-reliability - e.g. When a GDK action fails to complete. -
the script fails as --clobber is a wget option
-
Merge request checklist
-
This MR references an issue describing the change. -
This change is backward compatible. If not, please include steps to communicate to our users. -
Tests added for new functionality. If not, please raise an issue to follow-up. -
Documentation added/updated, if needed. -
Announcement added, if change is notable. -
gdk doctor
test added, if needed.
Edited by abhay jha