mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
Use child_process.execFile to prevent unescaped stuff (#2206)
Fix #2173
This commit is contained in:
parent
79472c537a
commit
53a5a425f7
1 changed files with 2 additions and 3 deletions
|
|
@ -15,12 +15,11 @@ module.exports = {
|
|||
const cmd = [process.execPath, yarn].concat(args).join(' ');
|
||||
console.log('Launching yarn:', cmd);
|
||||
|
||||
cp.exec(cmd, {
|
||||
cp.execFile(process.execPath, [yarn].concat(args), {
|
||||
cwd: plugs.base,
|
||||
env,
|
||||
shell: true,
|
||||
timeout: ms('5m'),
|
||||
stdio: ['ignore', 'ignore', 'inherit']
|
||||
maxBuffer: 1024 * 1024
|
||||
}, err => {
|
||||
if (err) {
|
||||
cb(err);
|
||||
|
|
|
|||
Loading…
Reference in a new issue