Skip to content

Commit

Permalink
make sure binaries found using which/where get added to adb.inaries (fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jlipps committed Apr 4, 2014
1 parent 5ceb9bb commit f4b25ac
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/devices/android/adb.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ ADB.prototype.checkSdkBinaryPresent = function (binary, cb) {
exec(cmd + " " + binary, { maxBuffer: 524288 }, function (err, stdout) {
if (stdout) {
this.debug("Using " + binary + " from " + stdout);
cb(null, stdout);
this.binaries[binary] = stdout.trim();
cb(null, this.binaries[binary]);
} else {
cb(new Error("Could not find " + binary + "; do you have the Android " +
"SDK installed and the tools + platform-tools folders " +
Expand Down Expand Up @@ -462,9 +463,7 @@ ADB.prototype.zipAlignApk = function (apk, cb) {
return cb(new Error("zipAlignApk failed. " + err));
}

mv(alignedApk, apk, { mkdirp: true }, function (err) {
cb(err);
});
mv(alignedApk, apk, { mkdirp: true }, cb);
});
}.bind(this));
};
Expand Down

0 comments on commit f4b25ac

Please sign in to comment.