script-updates: better regex matching

This commit is contained in:
Christian Hesse 2019-08-29 09:13:11 +02:00
parent 2d1a07dd0f
commit 1ee3213e02

View file

@ -26,7 +26,7 @@
/ 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 ];
:if ($ScriptVal->"policy" != $SchedulerVal->"policy") do={
:log warning ("Policies differ for script " . $ScriptVal->"name" . \