Skip to content

Commit 2aae9e0

Browse files
Akos Kittakittaakos
Akos Kitta
authored andcommitted
fix: execute the Arduino CLI without a shell
Closes #2112 Ref: #2067 Signed-off-by: Akos Kitta <[email protected]>
1 parent 9a99957 commit 2aae9e0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: arduino-ide-extension/src/node/arduino-daemon-impl.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,9 @@ export class ArduinoDaemonImpl
173173
const cliPath = this.getExecPath();
174174
const ready = new Deferred<{ daemon: ChildProcess; port: string }>();
175175
const options = {
176-
shell: true,
177176
env: { ...deepClone(process.env), NO_COLOR: String(true) },
178177
};
179-
const daemon = spawn(`"${cliPath}"`, args, options);
178+
const daemon = spawn(cliPath, args, options);
180179

181180
// If the process exists right after the daemon gRPC server has started (due to an invalid port, unknown address, TCP port in use, etc.)
182181
// we have no idea about the root cause unless we sniff into the first data package and dispatch the logic on that. Note, we get a exit code 1.

0 commit comments

Comments
 (0)