CB-9286 Fixes build failure when ANDROID_HOME is not set.

This commit is contained in:
Vladimir Kotikov 2015-07-03 09:46:39 +03:00
parent d3245a43d3
commit 6b071c0fb2

View File

@ -260,7 +260,7 @@ module.exports.check_android_target = function(valid_target) {
// Returns a promise.
module.exports.run = function() {
return Q.all([this.check_java(), this.check_android(), this.check_android_target()])
return Q.all([this.check_java(), this.check_android().then(this.check_android_target)])
.then(function() {
console.log('ANDROID_HOME=' + process.env['ANDROID_HOME']);
console.log('JAVA_HOME=' + process.env['JAVA_HOME']);