CB-9909 Shouldn't escape spaces in paths on Windows.. This closes #237

This commit is contained in:
Tim Barham 2015-10-29 15:30:48 -07:00 committed by Omar Mefire
parent 671219ae56
commit 1c90a77325

View File

@ -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) {