Merge remote-tracking branch 'origin/merge-requests/386'
By Dariusz Pelowski * origin/merge-requests/386: .automated_script.sh: add proper HTTP status checking See merge request https://gitlab.archlinux.org/archlinux/archiso/-/merge_requests/386
This commit is contained in:
commit
57589df1d6
2 changed files with 3 additions and 1 deletions
|
@ -17,6 +17,8 @@ Deprecated
|
|||
Fixed
|
||||
-----
|
||||
|
||||
- When downloading an automation script fail with non-zero status code instead of returning an HTML document when the remote HTTP server fails to deliver the document.
|
||||
|
||||
Removed
|
||||
-------
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ automated_script() {
|
|||
sleep 1
|
||||
done
|
||||
printf '%s: downloading %s\n' "$0" "${script}"
|
||||
curl "${script}" --location --retry-connrefused --retry 10 -s -o /tmp/startup_script
|
||||
curl "${script}" --location --retry-connrefused --retry 10 --fail -s -o /tmp/startup_script
|
||||
rt=$?
|
||||
else
|
||||
cp "${script}" /tmp/startup_script
|
||||
|
|
Loading…
Add table
Reference in a new issue