mirror of
https://github.com/apache/cordova-android.git
synced 2026-05-11 00:00:05 +08:00
CB-8898 Fixes gradle check failure due to missing quotes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user