forked from farhoodlabs/paperclip
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:
committed by
GitHub
parent
b642d3e06b
commit
9b238d9644
@@ -308,8 +308,7 @@ function quoteForCmd(arg: string) {
|
|||||||
|
|
||||||
function resolveWindowsCmdShell(env: NodeJS.ProcessEnv): string {
|
function resolveWindowsCmdShell(env: NodeJS.ProcessEnv): string {
|
||||||
const fallbackRoot = env.SystemRoot || process.env.SystemRoot || "C:\\Windows";
|
const fallbackRoot = env.SystemRoot || process.env.SystemRoot || "C:\\Windows";
|
||||||
const candidate = path.join(fallbackRoot, "System32", "cmd.exe");
|
return path.join(fallbackRoot, "System32", "cmd.exe");
|
||||||
return candidate;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function resolveSpawnTarget(
|
async function resolveSpawnTarget(
|
||||||
|
|||||||
Reference in New Issue
Block a user