tools/script_manager.lua - wrapped the scipt_dir in quotes to handle

the space in username problem on windows.
This commit is contained in:
Bill Ferguson
2023-10-16 22:41:12 -04:00
parent 014a0fc1c9
commit 34b9831472

View File

@@ -513,7 +513,7 @@ local function scan_scripts(script_dir)
local script_count = 0
local find_cmd = "find -L " .. script_dir .. " -name \\*.lua -print | sort"
if dt.configuration.running_os == "windows" then
find_cmd = "dir /b/s " .. script_dir .. "\\*.lua | sort"
find_cmd = "dir /b/s \s" .. script_dir .. "\\*.lua\" | sort"
end
log.msg(log.debug, _("find command is ") .. find_cmd)
-- scan the scripts