Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit f85a783

Browse files
elektronikworkshopadiazulay
authored andcommitted
Full cmd support for pre-/post-build commands on Windows
Addresses #786
1 parent 2af8f11 commit f85a783

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/arduino/arduino.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -714,11 +714,10 @@ export class ArduinoApp {
714714
let cmd: string;
715715
let args: string[];
716716
// pre-/post-build commands feature full bash support on UNIX systems.
717-
// Windows users must live with their poor system unless someone is
718-
// willing to fight with the annoying Windows cmd escaping -- good luck!
717+
// On Windows you have full cmd support.
719718
if (os.platform() === "win32") {
720-
args = cmdline.split(/\s+/);
721-
cmd = args.shift();
719+
args = [];
720+
cmd = cmdline;
722721
} else {
723722
args = ["-c", cmdline];
724723
cmd = "bash";

0 commit comments

Comments
 (0)