script-updates: handle error on fetch

This commit is contained in:
Christian Hesse 2018-07-09 22:27:29 +02:00
parent a7fb431acd
commit 8593c7a2f2

View file

@ -26,10 +26,14 @@
:if ($ignore = 0) do={
:log debug ("Fetching script from url: " . $scriptname);
/ tool fetch check-certificate=yes-without-crl \
dst-path=("script-updates/" . $scriptname) \
($"script-updates-baseurl" . $scriptname);
:set scriptfile [ / file find where name=("script-updates/" . $scriptname) ];
:do {
/ tool fetch check-certificate=yes-without-crl \
dst-path=("script-updates/" . $scriptname) \
($"script-updates-baseurl" . $scriptname);
:set scriptfile [ / file find where name=("script-updates/" . $scriptname) ];
} on-error={
:log debug ("Failed fetching " . $scriptname);
}
}
}