mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-01 08:44:32 +02:00
lease-script: match on word boundary
This commit is contained in:
parent
8b8bc7cf2d
commit
46e48497d5
1 changed files with 1 additions and 2 deletions
|
@ -33,8 +33,7 @@ $ScriptLock $0 false 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
:local RunOrder ({});
|
:local RunOrder ({});
|
||||||
|
:foreach Script in=[ /system/script/find where source~("\n# provides: lease-script\\b") ] do={
|
||||||
:foreach Script in=[ /system/script/find where source~("\n# provides: lease-script, ") ] do={
|
|
||||||
:local ScriptVal [ /system/script/get $Script ];
|
:local ScriptVal [ /system/script/get $Script ];
|
||||||
:local Store [ $ParseKeyValueStore [ $Grep ($ScriptVal->"source") ("\23 provides: lease-script, ") ] ];
|
:local Store [ $ParseKeyValueStore [ $Grep ($ScriptVal->"source") ("\23 provides: lease-script, ") ] ];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue