mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-23 04:14:27 +02:00
script-updates: add support for url suffix
This allows to fetch from different branch...
This commit is contained in:
parent
529acebc7b
commit
21f2b04f9a
2 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue