Skip to content

Commit 2e0539c

Browse files
committed
chore: shell on platform32 only
1 parent 8d3d8df commit 2e0539c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/execSync.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
import child_process from 'node:child_process';
2+
import {arch} from 'node:os';
3+
4+
const isPlatform32 =
5+
process.platform === 'win32' || ['ia32', 'x64'].includes(arch());
26

37
/**
48
* @param {string} command
@@ -9,7 +13,7 @@ export function execSync(command, options) {
913

1014
child_process.spawnSync(command.split(' ')[0], command.split(' ').slice(1), {
1115
stdio: 'inherit',
12-
shell: true,
16+
shell: isPlatform32,
1317
...options
1418
});
1519
}

0 commit comments

Comments
 (0)