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

Commit db20f65

Browse files
elektronikworkshophlovdal
authored andcommitted
Full cmd support for pre-/post-build commands on Windows
Addresses microsoft#786
1 parent c5a98ff commit db20f65

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
@@ -424,11 +424,10 @@ Please make sure the folder is not occupied by other procedures .`);
424424
let cmd: string;
425425
let args: string[];
426426
// pre-/post-build commands feature full bash support on UNIX systems.
427-
// Windows users must live with their poor system unless someone is
428-
// willing to fight with the annoying Windows cmd escaping -- good luck!
427+
// On Windows you have full cmd support.
429428
if (os.platform() === "win32") {
430-
args = cmdline.split(/\s+/);
431-
cmd = args.shift();
429+
args = [];
430+
cmd = cmdline;
432431
} else {
433432
args = ["-c", cmdline];
434433
cmd = "bash";

0 commit comments

Comments
 (0)