mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
script-updates: only handle scripts with magic pattern
This is supposed to prevent overwriting foreign scripts. New scripts are expected to be installed with function $ScriptInstallUpdate!
This commit is contained in:
parent
c500243c97
commit
833e72eac8
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@
|
|||
|
||||
:global SendNotification;
|
||||
|
||||
:foreach Script in=[ / system script find ] 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") ];
|
||||
|
|
Loading…
Reference in a new issue