diff --git a/check-health.rsc b/check-health.rsc index 90d8c841..4cb5baa0 100644 --- a/check-health.rsc +++ b/check-health.rsc @@ -74,7 +74,7 @@ :set CheckHealthRAMUtilizationNotified false; } - :local Plugins [ /system/script/find where name~"^check-health\\.d/." ]; + :local Plugins [ /system/script/find where name~"^check-health.d/." ]; :if ([ :len $Plugins ] = 0) do={ $LogPrint debug $ScriptName ("No plugins installed."); :set ExitOK true; diff --git a/global-config.rsc b/global-config.rsc index 25254123..31250418 100644 --- a/global-config.rsc +++ b/global-config.rsc @@ -275,9 +275,8 @@ # /_()_\ Things *will* break! # # load custom settings from overlay and snippets -:foreach Script in=([ /system/script/find where name~"^global-config\\.d/." ], \ - [ /system/script/find where name="global-config-overlay" ], \ - [ /system/script/find where name~"^global-config-overlay\\.d/." ]) do={ +:foreach Script in=([ /system/script/find where name="global-config-overlay" ], \ + [ /system/script/find where name~"^global-config-overlay.d/" ]) do={ :onerror Err { /system/script/run $Script; } do={ diff --git a/global-functions.rsc b/global-functions.rsc index 05c232ad..ff663c7c 100644 --- a/global-functions.rsc +++ b/global-functions.rsc @@ -1900,7 +1900,7 @@ } # load modules -:foreach Script in=[ /system/script/find where name ~ "^(global-functions\\.d|mod)/." ] do={ +:foreach Script in=[ /system/script/find where name ~ "^mod/." ] do={ :local ScriptVal [ /system/script/get $Script ]; :if ([ $ValidateSyntax ($ScriptVal->"source") ] = true) do={ :onerror Err {