From 1c90a7732526d7d71be88d121b61c8e6dcf3769b Mon Sep 17 00:00:00 2001 From: Tim Barham Date: Thu, 29 Oct 2015 15:30:48 -0700 Subject: [PATCH] CB-9909 Shouldn't escape spaces in paths on Windows.. This closes #237 --- bin/lib/check_reqs.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/lib/check_reqs.js b/bin/lib/check_reqs.js index d3a93e1a..73b2b998 100644 --- a/bin/lib/check_reqs.js +++ b/bin/lib/check_reqs.js @@ -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) {