Skip to content

Commit 9c6a56a

Browse files
authored
Merge pull request #17 from trueharuu/patch-1
fix: remove `shell` flag from syscalls
2 parents d645d40 + 67fa3be commit 9c6a56a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ async function runInteractive() {
136136
//@ts-ignore
137137
const selection = await prompt([which_install_cli])
138138
await new Promise((resolve, reject) => {
139-
const child = spawn(selection.manager, ['install', '-g', '@sern/cli@latest'], { cwd, shell: true });
139+
const child = spawn(selection.manager, ['install', '-g', '@sern/cli@latest'], { cwd });
140140
child.on('data', (s) => console.log(s.toString()));
141141
child.on('error', (e) => {
142142
console.error(e);
@@ -176,7 +176,7 @@ async function runShort(
176176
const selection = await prompt([which_install_cli])
177177
console.log(`Installing ${magentaBright('@sern/cli')}:`)
178178
await new Promise((resolve, reject) => {
179-
const child = spawn(selection.manager, ['install', '-g', '@sern/cli@latest'], { cwd, shell: true });
179+
const child = spawn(selection.manager, ['install', '-g', '@sern/cli@latest'], { cwd });
180180
child.stdout.pipe(process.stdout)
181181
child.on('data', (s) => console.log(s.toString()));
182182
child.on('error', (e) => {
@@ -235,7 +235,7 @@ async function runInstall(
235235
if (!runInstall) return;
236236
await new Promise((resolve, reject) => {
237237
console.log('Installing dependencies with ', magentaBright(pkgManager!));
238-
const child = spawn(pkgManager!, ['install'], { stdio: 'pipe', cwd, shell: true });
238+
const child = spawn(pkgManager!, ['install'], { stdio: 'pipe', cwd });
239239
child.stdout.pipe(process.stdout)
240240
child.on('data', (s) => console.log(s.toString()));
241241
child.on('error', (e) => {

0 commit comments

Comments
 (0)