mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 15:12:51 +08:00
CB-9286 Fixes build failure when ANDROID_HOME is not set.
This commit is contained in:
parent
d3245a43d3
commit
6b071c0fb2
@ -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']);
|
||||
|
Loading…
Reference in New Issue
Block a user