Commit 1ee3213e authored by Christian Hesse's avatar Christian Hesse

script-updates: better regex matching

parent 2d1a07dd
......@@ -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" . \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment