aboutsummaryrefslogtreecommitdiffstats
path: root/script-updates
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2018-07-09 22:27:29 +0200
committerGravatar Christian Hesse <mail@eworm.de>2018-07-09 22:27:29 +0200
commit8593c7a2f218e9a5cadb2a38077e053cd1346373 (patch)
treecdd13a23635eab20e9d9188d4bf0a2c1e06cea8e /script-updates
parenta7fb431acd2ef0164dfd90b10414ac65d369deec (diff)
script-updates: handle error on fetch
Diffstat (limited to 'script-updates')
-rw-r--r--script-updates12
1 files changed, 8 insertions, 4 deletions
diff --git a/script-updates b/script-updates
index fca3f0f..1f71278 100644
--- a/script-updates
+++ b/script-updates
@@ -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);
+ }
}
}