hcartiaux / openbsd-cloud-image

Qcow2 image builder for OpenBSD
12 stars 7 forks source link

Use `curl --fail` to fetch sets and config #1

Closed worr closed 6 months ago

worr commented 6 months ago

Currently, when fetching sets, if an invalid version is fed in, or an invalid mirror, curl will still create the output sets or report that fetching install.conf was successful.

With --fail, curl will now exit with failure on 404 and similar errors, rather than creating sets filled with html 404 pages.

In the future, if error-checking is added, this makes it easier to ensure that the script bails on a more complete set of curl failures.

hcartiaux commented 6 months ago

Awesome ! Thank you for this PR.