Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit b778f2d

Browse files
committed
Only set shell: true on Windows
1 parent 468d1fd commit b778f2d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

script/helpers/run-atom.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ const {spawn} = require('child_process');
33
function atomProcess(env, ...args) {
44
const atomBinPath = process.env.ATOM_SCRIPT_PATH || 'atom';
55
const atomEnv = {...process.env, ...env};
6+
const isWindows = process.platform === 'win32';
67

78
return new Promise((resolve, reject) => {
89
let settled = false;
910

1011
const child = spawn(atomBinPath, args, {
1112
env: atomEnv,
1213
stdio: 'inherit',
13-
shell: true,
14+
shell: isWindows,
1415
windowsHide: true,
1516
});
1617

0 commit comments

Comments
 (0)