mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-21 03:14:52 +02:00
global-functions: $ScriptInstallUpdate: support ignore from comment
Just add 'ignore' in comment...
This commit is contained in:
parent
149340ff34
commit
e38f3fb022
1 changed files with 3 additions and 0 deletions
|
@ -482,6 +482,7 @@
|
||||||
:global SentConfigChangesNotification;
|
:global SentConfigChangesNotification;
|
||||||
|
|
||||||
:global LogPrintExit;
|
:global LogPrintExit;
|
||||||
|
:global ParseKeyValueStore;
|
||||||
:global SendNotification;
|
:global SendNotification;
|
||||||
|
|
||||||
:foreach Script in=$Scripts do={
|
:foreach Script in=$Scripts do={
|
||||||
|
@ -520,6 +521,8 @@
|
||||||
:foreach IgnoreLoop in=$ScriptUpdatesIgnore do={
|
:foreach IgnoreLoop in=$ScriptUpdatesIgnore do={
|
||||||
:if ($IgnoreLoop = $ScriptVal->"name") do={ :set Ignore 1; }
|
:if ($IgnoreLoop = $ScriptVal->"name") do={ :set Ignore 1; }
|
||||||
}
|
}
|
||||||
|
:local Comment [ $ParseKeyValueStore ($ScriptVal->"comment") ];
|
||||||
|
:if ($Comment->"ignore" = true) do={ :set Ignore 1; }
|
||||||
|
|
||||||
:if ($Ignore = 0) do={
|
:if ($Ignore = 0) do={
|
||||||
$LogPrintExit debug ("Fetching script from url: " . $ScriptVal->"name") false;
|
$LogPrintExit debug ("Fetching script from url: " . $ScriptVal->"name") false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue