From 1ee3213e028e83564a0bae29294be41a9c3a54b2 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 29 Aug 2019 09:13:11 +0200 Subject: [PATCH] script-updates: better regex matching --- script-updates | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script-updates b/script-updates index be9d373..d6d05f5 100644 --- a/script-updates +++ b/script-updates @@ -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" . \