We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d3d8df commit 2e0539cCopy full SHA for 2e0539c
lib/execSync.js
@@ -1,4 +1,8 @@
1
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());
6
7
/**
8
* @param {string} command
@@ -9,7 +13,7 @@ export function execSync(command, options) {
9
13
10
14
child_process.spawnSync(command.split(' ')[0], command.split(' ').slice(1), {
11
15
stdio: 'inherit',
12
- shell: true,
16
+ shell: isPlatform32,
17
...options
18
});
19
}
0 commit comments