aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-11-15 20:22:56 +0100
committerGravatar Christian Hesse <mail@eworm.de>2021-11-15 22:18:10 +0100
commit8fc88c73f8cb99774727e7b96f9b85a8bf216c2c (patch)
treee5a36de5fd846a210088b2a21bd436f3f53b4805 /global-functions
parentf484e45b6a1fe5284462da19c90219d0716d916a (diff)
shorten modules directory name (global-functions.d -> mod)change-67
Diffstat (limited to 'global-functions')
-rw-r--r--global-functions6
1 files changed, 3 insertions, 3 deletions
diff --git a/global-functions b/global-functions
index 813e4b4..85fdf40 100644
--- a/global-functions
+++ b/global-functions
@@ -8,7 +8,7 @@
# https://git.eworm.de/cgit/routeros-scripts/about/
# expected configuration version
-:global ExpectedConfigVersion 66;
+:global ExpectedConfigVersion 67;
# global variables not to be changed by user
:global GlobalFunctionsReady false;
@@ -755,7 +755,7 @@
:if ($ScriptVal->"name" = "global-config") do={
:set ReloadGlobalConfig true;
}
- :if ($ScriptVal->"name" ~ ("^global-functions(\$|\\.d/.)")) do={
+ :if ($ScriptVal->"name" = "global-functions" || $ScriptVal->"name" ~ ("^mod/.")) do={
:set ReloadGlobalFunctions true;
}
} else={
@@ -1242,7 +1242,7 @@
}
# load modules
-:foreach Script in=[ / system script find where name ~ "^global-functions\\.d/." ] do={
+:foreach Script in=[ / system script find where name ~ "^mod/." ] do={
/ system script run $Script;
}