tools/script_manager - sanitized system directory string for lua pattern

matching so system lua scripts detection works when lua special characters
are in the path (such as -)
This commit is contained in:
Bill Ferguson
2026-05-11 12:24:30 -04:00
parent 5823d015ac
commit 14646cf8e6

View File

@@ -70,7 +70,7 @@ local scripts_path = info.source:sub(2)
-- assume user based
local system_based = false
if string.match(scripts_path, dt.configuration.data_dir) then
if string.match(scripts_path, ds.sanitize_lua(dt.configuration.data_dir)) then
log.msg(log.info, "script_manager using system based scripts")
system_based = true
end