From 46e48497d5e9ca0627ad325b8d13d9b6d70c061a Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 13 Sep 2023 12:17:54 +0200 Subject: lease-script: match on word boundary --- lease-script.rsc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lease-script.rsc b/lease-script.rsc index 9b43e18..f8bc129 100644 --- a/lease-script.rsc +++ b/lease-script.rsc @@ -33,8 +33,7 @@ $ScriptLock $0 false 10; } :local RunOrder ({}); - -:foreach Script in=[ /system/script/find where source~("\n# provides: lease-script, ") ] do={ +:foreach Script in=[ /system/script/find where source~("\n# provides: lease-script\\b") ] do={ :local ScriptVal [ /system/script/get $Script ]; :local Store [ $ParseKeyValueStore [ $Grep ($ScriptVal->"source") ("\23 provides: lease-script, ") ] ]; -- cgit v1.2.3-70-g09d2