forked from github/cordova-android
Remove 2 X console.log from exec.js
With these console.log statements the output from commands such as 'list-devices' is very messy and hence difficult to parse the output programatically.
This commit is contained in:
parent
59c8e8b46e
commit
be2f7d7a8a
2
bin/templates/cordova/lib/exec.js
vendored
2
bin/templates/cordova/lib/exec.js
vendored
@ -27,10 +27,8 @@ var child_process = require('child_process'),
|
|||||||
// rejects with an error message and the stderr.
|
// rejects with an error message and the stderr.
|
||||||
module.exports = function(cmd, opt_cwd) {
|
module.exports = function(cmd, opt_cwd) {
|
||||||
var d = Q.defer();
|
var d = Q.defer();
|
||||||
console.log('exec: ' + cmd);
|
|
||||||
try {
|
try {
|
||||||
child_process.exec(cmd, {cwd: opt_cwd}, function(err, stdout, stderr) {
|
child_process.exec(cmd, {cwd: opt_cwd}, function(err, stdout, stderr) {
|
||||||
console.log([cmd, err, stdout, stderr]);
|
|
||||||
if (err) d.reject('Error executing "' + cmd + '": ' + stderr);
|
if (err) d.reject('Error executing "' + cmd + '": ' + stderr);
|
||||||
else d.resolve(stdout);
|
else d.resolve(stdout);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user