Skip to content

Commit

Permalink
Don't use double quotes on macos, resolves #878
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoTheThird committed Sep 11, 2019
1 parent 1158dfb commit f368b7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/adb.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ var push = (file, dest, pushEvent) => {
var done;
var hundredEmitted;
var fileSize = fs.statSync(file)["size"];
utils.platformToolsExec("adb", ["-P", PORT, "push", '"' + file + '"', dest], (err, stdout, stderr) => {
var guardedfile = process.platform == "darwin" ? file : '"' + file + '"'; // macos can't handle double quotes
utils.platformToolsExec("adb", ["-P", PORT, "push", guardedfile, dest], (err, stdout, stderr) => {
done=true;
if (err) {
var stdoutShort = stdout && stdout.length > 256 ? "[...]" + stdout.substr(-256, stdout.length) : stdout;
Expand Down

0 comments on commit f368b7b

Please sign in to comment.