diff --git a/info.ts b/info.ts index a7ad59a..0f1a06f 100644 --- a/info.ts +++ b/info.ts @@ -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"], diff --git a/src/runner.ts b/src/runner.ts index b8c1f92..0b1ec28 100644 --- a/src/runner.ts +++ b/src/runner.ts @@ -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 ?? {},