Skip to content

Commit

Permalink
Merge pr #105 from denosaurs/win-path-fix
Browse files Browse the repository at this point in the history
fix: patch #102
  • Loading branch information
eliassjogreen authored Oct 2, 2020
2 parents e48dec0 + 9f1bf13 commit fa0833e
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 fa0833e

Please sign in to comment.