mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-01 02:12:58 +08:00
CB-8898 Fixes gradle check failure due to missing quotes
This commit is contained in:
parent
c9e7201058
commit
b5d8b51310
@ -85,7 +85,7 @@ module.exports.check_gradle = function() {
|
||||
var message = 'Could not find gradle wrapper within Android SDK. ';
|
||||
if (!sdkDir) return Q.reject(message + 'Might need to install Android SDK or set up \'ADROID_HOME\' env variable.');
|
||||
var wrapper = path.join(sdkDir, 'tools', 'templates', 'gradle', 'wrapper', 'gradlew');
|
||||
return tryCommand(wrapper + ' -v', message + 'Might need to update your Android SDK.\n' +
|
||||
return tryCommand('"' + wrapper + '" -v', message + 'Might need to update your Android SDK.\n' +
|
||||
'Looked here: ' + path.basename(wrapper))
|
||||
.then(function (output) {
|
||||
// Parse Gradle version from command output
|
||||
|
Loading…
Reference in New Issue
Block a user