aboutsummaryrefslogtreecommitdiffstats
path: root/script-updates
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2018-09-14 11:10:03 +0200
committerGravatar Christian Hesse <mail@eworm.de>2018-09-14 11:10:03 +0200
commitea5083a42749a7d687874807f376da6ab7b5e71a (patch)
tree4a746d6b078ff62f8955d0aaf6132a269f8480b8 /script-updates
parent8b1ed433ed903d555802d932ea09abc543a3a5cf (diff)
script-updates: add error handling back in
We have to make sure the script does not terminate on first error...
Diffstat (limited to 'script-updates')
-rw-r--r--script-updates16
1 files 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);
}
}
}