fix(security): harden Windows child process spawning
This commit is contained in:
@@ -55,7 +55,6 @@ function run(cmd, args) {
|
||||
cwd: uiDir,
|
||||
stdio: "inherit",
|
||||
env: process.env,
|
||||
shell: process.platform === "win32",
|
||||
});
|
||||
child.on("exit", (code, signal) => {
|
||||
if (signal) {
|
||||
@@ -70,7 +69,6 @@ function runSync(cmd, args, envOverride) {
|
||||
cwd: uiDir,
|
||||
stdio: "inherit",
|
||||
env: envOverride ?? process.env,
|
||||
shell: process.platform === "win32",
|
||||
});
|
||||
if (result.signal) {
|
||||
process.exit(1);
|
||||
|
||||
Reference in New Issue
Block a user