mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
script-updates: handle error on fetch
This commit is contained in:
parent
a7fb431acd
commit
8593c7a2f2
1 changed files with 8 additions and 4 deletions
|
@ -26,10 +26,14 @@
|
||||||
|
|
||||||
:if ($ignore = 0) do={
|
:if ($ignore = 0) do={
|
||||||
:log debug ("Fetching script from url: " . $scriptname);
|
:log debug ("Fetching script from url: " . $scriptname);
|
||||||
|
:do {
|
||||||
/ tool fetch check-certificate=yes-without-crl \
|
/ tool fetch check-certificate=yes-without-crl \
|
||||||
dst-path=("script-updates/" . $scriptname) \
|
dst-path=("script-updates/" . $scriptname) \
|
||||||
($"script-updates-baseurl" . $scriptname);
|
($"script-updates-baseurl" . $scriptname);
|
||||||
:set scriptfile [ / file find where name=("script-updates/" . $scriptname) ];
|
:set scriptfile [ / file find where name=("script-updates/" . $scriptname) ];
|
||||||
|
} on-error={
|
||||||
|
:log debug ("Failed fetching " . $scriptname);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue