mirror of
https://github.com/sern-handler/create-bot
synced 2026-06-06 01:16:53 +00:00
Merge pull request #17 from trueharuu/patch-1
fix: remove `shell` flag from syscalls
This commit is contained in:
@@ -136,7 +136,7 @@ async function runInteractive() {
|
||||
//@ts-ignore
|
||||
const selection = await prompt([which_install_cli])
|
||||
await new Promise((resolve, reject) => {
|
||||
const child = spawn(selection.manager, ['install', '-g', '@sern/cli@latest'], { cwd, shell: true });
|
||||
const child = spawn(selection.manager, ['install', '-g', '@sern/cli@latest'], { cwd });
|
||||
child.on('data', (s) => console.log(s.toString()));
|
||||
child.on('error', (e) => {
|
||||
console.error(e);
|
||||
@@ -176,7 +176,7 @@ async function runShort(
|
||||
const selection = await prompt([which_install_cli])
|
||||
console.log(`Installing ${magentaBright('@sern/cli')}:`)
|
||||
await new Promise((resolve, reject) => {
|
||||
const child = spawn(selection.manager, ['install', '-g', '@sern/cli@latest'], { cwd, shell: true });
|
||||
const child = spawn(selection.manager, ['install', '-g', '@sern/cli@latest'], { cwd });
|
||||
child.stdout.pipe(process.stdout)
|
||||
child.on('data', (s) => console.log(s.toString()));
|
||||
child.on('error', (e) => {
|
||||
@@ -235,7 +235,7 @@ async function runInstall(
|
||||
if (!runInstall) return;
|
||||
await new Promise((resolve, reject) => {
|
||||
console.log('Installing dependencies with ', magentaBright(pkgManager!));
|
||||
const child = spawn(pkgManager!, ['install'], { stdio: 'pipe', cwd, shell: true });
|
||||
const child = spawn(pkgManager!, ['install'], { stdio: 'pipe', cwd });
|
||||
child.stdout.pipe(process.stdout)
|
||||
child.on('data', (s) => console.log(s.toString()));
|
||||
child.on('error', (e) => {
|
||||
|
||||
Reference in New Issue
Block a user