mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-21 08:05:19 +08:00
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.
|
||||
module.exports = function(cmd, opt_cwd) {
|
||||
var d = Q.defer();
|
||||
console.log('exec: ' + cmd);
|
||||
try {
|
||||
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);
|
||||
else d.resolve(stdout);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user