mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
script-updates: better regex matching
This commit is contained in:
parent
2d1a07dd0f
commit
1ee3213e02
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@
|
||||||
/ file remove $ScriptFile;
|
/ file remove $ScriptFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
:foreach Scheduler in=[ / system scheduler find where on-event=($ScriptVal->"name") ] do={
|
:foreach Scheduler in=[ / system scheduler find where on-event~("\\b" . $ScriptVal->"name" . "\\b") ] do={
|
||||||
:local SchedulerVal [ / system scheduler get $Scheduler ];
|
:local SchedulerVal [ / system scheduler get $Scheduler ];
|
||||||
:if ($ScriptVal->"policy" != $SchedulerVal->"policy") do={
|
:if ($ScriptVal->"policy" != $SchedulerVal->"policy") do={
|
||||||
:log warning ("Policies differ for script " . $ScriptVal->"name" . \
|
:log warning ("Policies differ for script " . $ScriptVal->"name" . \
|
||||||
|
|
Loading…
Reference in a new issue