mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-21 08:12:56 +08:00
CB-9909 Shouldn't escape spaces in paths on Windows.. This closes #237
This commit is contained in:
parent
671219ae56
commit
1c90a77325
@ -230,8 +230,12 @@ module.exports.check_android = function() {
|
||||
});
|
||||
};
|
||||
|
||||
module.exports.getAbsoluteAndroidCmd = function() {
|
||||
return forgivingWhichSync('android').replace(/(\s)/g, '\\$1');
|
||||
module.exports.getAbsoluteAndroidCmd = function () {
|
||||
var cmd = forgivingWhichSync('android');
|
||||
if (process.platform === 'win32') {
|
||||
return '"' + cmd + '"';
|
||||
}
|
||||
return cmd.replace(/(\s)/g, '\\$1');
|
||||
};
|
||||
|
||||
module.exports.check_android_target = function(valid_target) {
|
||||
|
Loading…
Reference in New Issue
Block a user