From 6b071c0fb2c4c2a5622b6e5d87c09a0bf9e784d6 Mon Sep 17 00:00:00 2001 From: Vladimir Kotikov Date: Fri, 3 Jul 2015 09:46:39 +0300 Subject: [PATCH] CB-9286 Fixes build failure when ANDROID_HOME is not set. --- bin/lib/check_reqs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/lib/check_reqs.js b/bin/lib/check_reqs.js index 5ddf4b4a..d11a0d2a 100644 --- a/bin/lib/check_reqs.js +++ b/bin/lib/check_reqs.js @@ -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']);