1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00:00

script-updates: add support for url suffix

This allows to fetch from different branch...
This commit is contained in:
Christian Hesse
2018-08-27 11:15:03 +02:00
parent 529acebc7b
commit 21f2b04f9a
2 changed files with 3 additions and 1 deletions

View File

@@ -6,6 +6,7 @@
:global "script-updates-fetch";
:global "script-updates-baseurl";
:global "script-updates-urlsuffix";
:global "script-updates-ignore";
:foreach script in=[ / system script find ] do={
@@ -23,7 +24,7 @@
:do {
/ tool fetch check-certificate=yes-without-crl \
dst-path=("script-updates/" . $scriptname) \
($"script-updates-baseurl" . $scriptname);
($"script-updates-baseurl" . $scriptname . $"script-updates-urlsuffix");
:set scriptfile [ / file find where name=("script-updates/" . $scriptname) ];
} on-error={
:log debug ("Failed fetching " . $scriptname);