Skip to content

Commit dab94e3

Browse files
committed
Changed 'spawn' to more portable 'cross-spawn'
1 parent 5c2c5cc commit dab94e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

functions/command.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var spawn = require('child_process').spawn;
1+
var spawn = require('cross-spawn');
22

33
function command(ins, outs, config, cb) {
44
var exec = config.executor.executable,
@@ -29,7 +29,7 @@ function command(ins, outs, config, cb) {
2929

3030
function command_print(ins, outs, config, cb) {
3131
var exec = config.executor.executable,
32-
args = config.executor.args;
32+
args = config.executor.args.join(' ');
3333

3434
console.log(exec, args);
3535

@@ -52,4 +52,4 @@ function command_notifyevents(ins, outs, config, cb) {
5252

5353
exports.command = command;
5454
exports.command_print = command_print;
55-
exports.command_notifyevents = command_notifyevents;
55+
exports.command_notifyevents = command_notifyevents;

0 commit comments

Comments
 (0)