Skip to content
This repository was archived by the owner on Aug 14, 2020. It is now read-only.

Commit c8ef537

Browse files
committed
init windows support
1 parent c37cf7e commit c8ef537

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ async function ExecScopeRun(homePath, command, cwd, dsn) {
4848
if (dsn) {
4949
envVars[SCOPE_DSN] = dsn;
5050
}
51-
await exec.exec(`${homePath}/.dotnet/tools/scope-run`, [ command ], {
51+
let filename = `${homePath}/.dotnet/tools/scope-run`;
52+
if (process.platform === "win32") {
53+
filename = `${homePath}\\.dotnet\\tools\\scope-run.exe`
54+
}
55+
await exec.exec(filename, [ command ], {
5256
cwd: cwd,
5357
env: envVars
5458
});

0 commit comments

Comments
 (0)