script-updates: add error handling back in

We have to make sure the script does not terminate on first error...
This commit is contained in:
Christian Hesse 2018-09-14 11:10:03 +02:00
parent 8b1ed433ed
commit ea5083a427

View file

@ -36,13 +36,15 @@
:if ($ignore = 0) do={
:log debug ("Fetching script from url: " . $scriptname);
:do {
:local result [ / tool fetch check-certificate=yes-without-crl \
($"script-updates-baseurl" . $scriptname . $"script-updates-urlsuffix") \
output=user as-value ];
:if ($result->"status" = "finished") do={
:set sourcenew ($result->"data");
} else={
:log debug ("Failed fetching " . $scriptname);
}
} on-error={
:log info ("Failed fetching " . $scriptname);
}
}
}