From 0f47f46b35439d3d908e86d0a12924c7b3d0367b Mon Sep 17 00:00:00 2001 From: Andrii Ryzhkov Date: Fri, 5 Jun 2026 16:06:20 +0200 Subject: [PATCH] Fix stray "File Not Found" stderr from dir on Windows startup --- tools/script_manager.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/script_manager.lua b/tools/script_manager.lua index 33dec02..01c4f45 100644 --- a/tools/script_manager.lua +++ b/tools/script_manager.lua @@ -748,7 +748,7 @@ local function scan_scripts(script_dir) 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 \"" .. script_dir .. "\\*.lua\" 2>nul | sort" end log.msg(log.debug, "find command is " .. find_cmd) @@ -842,7 +842,7 @@ local function scan_repositories() local find_cmd = "find -L " .. LUA_DIR .. " -name \\*.git -print | sort" if dt.configuration.running_os == "windows" then - find_cmd = "dir /b/s /a:d " .. LUA_DIR .. PS .. "*.git | sort" + find_cmd = "dir /b/s /a:d " .. LUA_DIR .. PS .. "*.git 2>nul | sort" end log.msg(log.debug, "find command is " .. find_cmd)