Skip to content
This repository was archived by the owner on May 9, 2024. It is now read-only.

Commit 98c91b1

Browse files
fix(scripts): running commands with certain shells
Due to a bug with `execFileSync` [1], arguments passed to it when used in combination with the `shell: true` option won't be used on certain shells. Notably, this includes many Unix shells (such as Bash). Luckily, for the purposes of this project, `spawnSync` can be used instead. -- 1. nodejs/node#43333
1 parent feeefdc commit 98c91b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/utilities/exec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function tryLogError(error) {
1515

1616
export default function execSync(command, args, options) {
1717
try {
18-
cp.execFileSync(command, args, {
18+
cp.spawnSync(command, args, {
1919
...options,
2020
shell: true,
2121
});

0 commit comments

Comments
 (0)