Skip to content

Commit fa0833e

Browse files
Merge pr #105 from denosaurs/win-path-fix
fix: patch #102
2 parents e48dec0 + 9f1bf13 commit fa0833e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

info.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright 2020-present the denosaurs team. All rights reserved. MIT license.
22

3-
export const VERSION = "2.4.0";
3+
export const VERSION = "2.4.1";
44
export const BRANCH = "master";
55
// export const COMPAT: { [denon: string]: string[] } = {
66
// "2.3.0": ["1.2.0"],

src/runner.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,11 @@ export class Runner {
159159
/** Create an `Execution` object to handle the lifetime
160160
* of the process that is executed. */
161161
execute(command: Command): Deno.Process {
162+
// Fix for #102
163+
if (Deno.build.os === "windows") {
164+
command.cmd = ["cmd", "/c"].concat(command.cmd);
165+
}
166+
162167
const options = {
163168
cmd: command.cmd,
164169
env: command.options.env ?? {},

0 commit comments

Comments
 (0)