Skip to content

Commit

Permalink
fix: patch #102
Browse files Browse the repository at this point in the history
  • Loading branch information
eliassjogreen committed Oct 2, 2020
1 parent e48dec0 commit 9f1bf13
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion info.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2020-present the denosaurs team. All rights reserved. MIT license.

export const VERSION = "2.4.0";
export const VERSION = "2.4.1";
export const BRANCH = "master";
// export const COMPAT: { [denon: string]: string[] } = {
// "2.3.0": ["1.2.0"],
Expand Down
5 changes: 5 additions & 0 deletions src/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@ export class Runner {
/** Create an `Execution` object to handle the lifetime
* of the process that is executed. */
execute(command: Command): Deno.Process {
// Fix for #102
if (Deno.build.os === "windows") {
command.cmd = ["cmd", "/c"].concat(command.cmd);
}

const options = {
cmd: command.cmd,
env: command.options.env ?? {},
Expand Down

0 comments on commit 9f1bf13

Please sign in to comment.