Update packages/adapter-utils/src/server-utils.ts

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
TimoYi | HearthCore | ZenWise 2026-04-01 14:37:46 +02:00 committed by GitHub
parent b642d3e06b
commit 9b238d9644
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -308,8 +308,7 @@ function quoteForCmd(arg: string) {
function resolveWindowsCmdShell(env: NodeJS.ProcessEnv): string {
const fallbackRoot = env.SystemRoot || process.env.SystemRoot || "C:\\Windows";
const candidate = path.join(fallbackRoot, "System32", "cmd.exe");
return candidate;
return path.join(fallbackRoot, "System32", "cmd.exe");
}
async function resolveSpawnTarget(