mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-21 08:12:56 +08:00
CB-12546: account for quotes when detecting android
command error for Windows.
This commit is contained in:
parent
884818934f
commit
2f2e8a560d
2
bin/templates/cordova/lib/android_sdk.js
vendored
2
bin/templates/cordova/lib/android_sdk.js
vendored
@ -122,7 +122,7 @@ module.exports.list_targets = function() {
|
||||
.catch(function(err) {
|
||||
// there's a chance `android` no longer works.
|
||||
// lets see if `sdkmanager` is available and we can figure it out
|
||||
var avail_regex = /android command is no longer available/;
|
||||
var avail_regex = /"?android"? command is no longer available/;
|
||||
if (err.code && ((err.stdout && err.stdout.match(avail_regex)) || (err.stderr && err.stderr.match(avail_regex)))) {
|
||||
return module.exports.list_targets_with_sdkmanager();
|
||||
} else throw err;
|
||||
|
Loading…
Reference in New Issue
Block a user