MCPcopy Create free account
hub / github.com/holaboss-ai/holaOS / windowsPowerShellPath

Function windowsPowerShellPath

runtime/api-server/src/runtime-shell.ts:13–25  ·  view source on GitHub ↗
(env: NodeJS.ProcessEnv = process.env)

Source from the content-addressed store, hash-verified

11}
12
13function windowsPowerShellPath(env: NodeJS.ProcessEnv = process.env): string {
14 const systemRoot = (env.SystemRoot ?? env.windir ?? "C:\\Windows").trim();
15 if (!systemRoot) {
16 return "powershell.exe";
17 }
18 return path.win32.join(
19 systemRoot,
20 "System32",
21 "WindowsPowerShell",
22 "v1.0",
23 "powershell.exe",
24 );
25}
26
27export function shellPathDelimiter(platform: NodeJS.Platform = process.platform): string {
28 return platform === "win32" ? ";" : ":";

Callers 1

shellCommandInvocationFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected