Skip to content

Commit

Permalink
fix(utils/exec): fixes arguments not being properly parsed as spawn i…
Browse files Browse the repository at this point in the history
…s always used w/ shell=true
  • Loading branch information
rafamel committed Jun 17, 2019
1 parent 29c43dd commit d864efb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/exec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default async function exec(

logger.debug('Executing: ' + join([cmd].concat(args)));

const ps = fork ? _fork(cmd, args, opts) : spawn(cmd, args, opts);
const ps = fork ? _fork(cmd, args, opts) : spawn(cmd, [join(args)], opts);
const promise = new Promise((resolve: (arg: void) => void, reject) => {
ps.on('error', (err: any) => reject(err));
ps.on('close', (code: number) => {
Expand Down

0 comments on commit d864efb

Please sign in to comment.