Skip to content

Commit

Permalink
Merge pull request #881 from AhmedBaset/patch-1
Browse files Browse the repository at this point in the history
Fix `spawn EINVAL` error on windows
  • Loading branch information
OlegNitz authored Dec 16, 2024
2 parents df883b0 + 5d37c41 commit 4a24e83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/lib/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export async function execute(
if (log) {
log.debug(`Executing shell: ${joinedCmd}`);
}
return await execPromise(joinedCmd, {env: env});
return await execPromise(joinedCmd, {env: env, shell: true});
}

export async function executeFile(
Expand All @@ -60,7 +60,7 @@ export async function executeFile(
if (log) {
log.debug(`Executing command ${cmd} with args ${args}`);
}
return await execFilePromise(cmd, args, {env: env, cwd: cwd});
return await execFilePromise(cmd, args, {env: env, cwd: cwd, shell: true});
}

export async function unzipFile(
Expand Down

0 comments on commit 4a24e83

Please sign in to comment.