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

global-functions: $ScriptInstallUpdate: drop the migration pattern

This commit is contained in:
Christian Hesse
2021-07-09 12:06:40 +02:00
parent d80a7efb7c
commit 81cba72bec

View File

@ -734,7 +734,7 @@
:local ReloadGlobalFunctions false; :local ReloadGlobalFunctions false;
:local ReloadGlobalConfig false; :local ReloadGlobalConfig false;
:foreach Script in=[ / system script find where source~"^#!rsc( by RouterOS)\?\n" ] do={ :foreach Script in=[ / system script find where source~"^#!rsc by RouterOS\n" ] do={
:local ScriptVal [ / system script get $Script ]; :local ScriptVal [ / system script get $Script ];
:local ScriptFile [ / file find where name=("script-updates/" . $ScriptVal->"name") ]; :local ScriptFile [ / file find where name=("script-updates/" . $ScriptVal->"name") ];
:local SourceNew; :local SourceNew;