Skip to content

Commit

Permalink
stop prefixing wsl to paths
Browse files Browse the repository at this point in the history
Signed-off-by: Will Murphy <will.murphy@anchore.com>
  • Loading branch information
willmurphyscode committed Nov 7, 2023
1 parent 5854181 commit f68f80a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 27 deletions.
7 changes: 1 addition & 6 deletions dist/attachReleaseAssets/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions dist/downloadSyft/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions dist/runSyftAction/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 1 addition & 9 deletions src/github/Executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,7 @@ export async function execute(
args: string[],
options?: exec.ExecOptions
) {
if (process.platform === "win32") {
return await exec.exec(
"wsl",
[mapToWSLPath(cmd), ...args.map(mapToWSLPath)],
options
);
} else {
return exec.exec(cmd, args, options);
}
return exec.exec(cmd, args, options);
}

/**
Expand Down

0 comments on commit f68f80a

Please sign in to comment.