From 9f1bf13d16ba94050ec4cd7e158a4576e1a48966 Mon Sep 17 00:00:00 2001 From: eliassjogreen Date: Fri, 2 Oct 2020 10:01:58 +0200 Subject: [PATCH] fix: patch #102 --- info.ts | 2 +- src/runner.ts | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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 ?? {},