From be8635abbf2ef4cdeb99919d39843c8484d2b483 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Mon, 7 Jul 2014 11:01:52 -0300 Subject: [PATCH] fixes #826 --- shell/scripts/launch.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/shell/scripts/launch.js b/shell/scripts/launch.js index d50522674..defdf9554 100644 --- a/shell/scripts/launch.js +++ b/shell/scripts/launch.js @@ -1,12 +1,12 @@ /* -** copay-shell - launch -*/ + ** copay-shell - launch + */ -var color = require('cli-color'); -var path = require('path'); -var appPath = path.normalize(__dirname + '/../../'); +var color = require('cli-color'); +var path = require('path'); +var appPath = path.normalize(__dirname + '/../../'); var execPath = path.normalize(__dirname + '/../bin/' + process.platform); -var spawn = require('child_process').spawn; +var spawn = require('child_process').spawn; // update execPath with platform specific binary locations switch (process.platform) { @@ -26,14 +26,14 @@ switch (process.platform) { var copay = spawn(execPath, [appPath]); -copay.stdout.on('data', function (data) { +copay.stdout.on('data', function(data) { console.log(data); }); -copay.stderr.on('data', function (data) { - console.log(color.red(data)); +copay.stderr.on('data', function(data) { + console.log("STDERR:" + data); }); -copay.on('close', function (code) { +copay.on('close', function(code) { console.log('child process exited with code ' + code); });