From ea5083a42749a7d687874807f376da6ab7b5e71a Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 14 Sep 2018 11:10:03 +0200 Subject: script-updates: add error handling back in We have to make sure the script does not terminate on first error... --- script-updates | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/script-updates b/script-updates index c8efc1f..9b665a2 100644 --- a/script-updates +++ b/script-updates @@ -36,13 +36,15 @@ :if ($ignore = 0) do={ :log debug ("Fetching script from url: " . $scriptname); - :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); + :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"); + } + } on-error={ + :log info ("Failed fetching " . $scriptname); } } } -- cgit v1.2.3-70-g09d2