mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-01-07 09:39:32 +00:00
global-functions: support modules (or snippets) in global-functions.d/
This commit is contained in:
parent
8fa17d4b3b
commit
8878449b0b
1 changed files with 1 additions and 1 deletions
|
|
@ -1900,7 +1900,7 @@
|
|||
}
|
||||
|
||||
# load modules
|
||||
:foreach Script in=[ /system/script/find where name ~ "^mod/." ] do={
|
||||
:foreach Script in=[ /system/script/find where name ~ "^(global-functions\\.d|mod)/." ] do={
|
||||
:local ScriptVal [ /system/script/get $Script ];
|
||||
:if ([ $ValidateSyntax ($ScriptVal->"source") ] = true) do={
|
||||
:onerror Err {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue