Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

// MODULES //

var proc = require( 'process' );
var spawn = require( 'child_process' ).spawn;


Expand Down Expand Up @@ -81,9 +82,9 @@ function stderr( data ) {
* @param {string} subpath - subdirectory path
*/
function plugin( dir, cwd, subpath ) {
var child;
var opts;
var args;
var proc;

opts = {};
opts.cwd = dir;
Expand All @@ -98,11 +99,11 @@ function plugin( dir, cwd, subpath ) {
// Target:
args.push( 'install-node-addons' );

proc = spawn( 'make', args, opts );
proc.on( 'error', onError );
proc.stdout.on( 'data', stdout );
proc.stderr.on( 'data', stderr );
proc.on( 'close', onFinish );
child = spawn( 'make', args, opts );
child.on( 'error', onError );
child.stdout.on( 'data', stdout );
child.stderr.on( 'data', stderr );
child.on( 'close', onFinish );
}


Expand Down
Loading