[CB-4996] Fix paths with spaces while launching on emulator and device

This commit is contained in:
Braden Shepherdson 2013-11-06 10:37:59 -05:00
parent 4e1156e083
commit 8783cf03b2
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ module.exports.install = function(target) {
var apk_path = build.get_apk();
launchName = appinfo.getActivityName();
console.log('Installing app on device...');
var cmd = 'adb -s ' + target + ' install -r ' + apk_path;
var cmd = 'adb -s ' + target + ' install -r "' + apk_path + '"';
return exec(cmd);
}).then(function(output) {
if (output.match(/Failure/)) return Q.reject('ERROR: Failed to install apk to device: ' + output);

View File

@ -305,7 +305,7 @@ module.exports.install = function(target) {
console.log('Installing app on emulator...');
var apk_path = build.get_apk();
return exec('adb -s ' + target + ' install -r ' + apk_path);
return exec('adb -s ' + target + ' install -r "' + apk_path + '"');
}).then(function(output) {
if (output.match(/Failure/)) {
return Q.reject('Failed to install apk to emulator: ' + output);