From 8593c7a2f218e9a5cadb2a38077e053cd1346373 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 9 Jul 2018 22:27:29 +0200 Subject: script-updates: handle error on fetch --- script-updates | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'script-updates') 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); + } } } -- cgit v1.2.3-70-g09d2