CB-7881 Android tooling shouldn't lock application directory

Close #130
This commit is contained in:
sgrebnov
2014-10-27 17:14:35 +03:00
committed by Andrew Grieve
parent ba140a8a84
commit 268fea58ee
4 changed files with 17 additions and 13 deletions
+2 -1
View File
@@ -24,6 +24,7 @@ var shell = require('shelljs'),
Q = require('q'),
path = require('path'),
fs = require('fs'),
os = require('os'),
ROOT = path.join(__dirname, '..', '..');
var check_reqs = require('./check_reqs');
var exec = require('./exec');
@@ -400,7 +401,7 @@ module.exports.run = function(options, optResolvedTarget) {
*/
module.exports.detectArchitecture = function(target) {
function helper() {
return exec('adb -s ' + target + ' shell cat /proc/cpuinfo')
return exec('adb -s ' + target + ' shell cat /proc/cpuinfo', os.tmpdir())
.then(function(output) {
if (/intel/i.exec(output)) {
return 'x86';