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

global-functions: $ScriptInstallUpdate: ignore empty scripts

Now that script-updates is gone we support installing new scripts with
$ScriptInstallUpdate only.
This commit is contained in:
Christian Hesse
2020-03-31 12:58:13 +02:00
parent 04460debfc
commit e33b4af433

View File

@ -399,7 +399,7 @@
}
}
:foreach Script in=[ / system script find where source~"^#!rsc" or source="" ] do={
:foreach Script in=[ / system script find where source~"^#!rsc" ] do={
:local Ignore 0;
:local ScriptVal [ / system script get $Script ];
:local ScriptFile [ / file find where name=("script-updates/" . $ScriptVal->"name") ];