From f368b7b43a89f4f0a4ff16ff5d2df311fa4f6d72 Mon Sep 17 00:00:00 2001 From: Jan Sprinz Date: Mon, 9 Sep 2019 10:44:51 +0200 Subject: [PATCH] Don't use double quotes on macos, resolves #878 --- src/adb.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/adb.js b/src/adb.js index 4a55b9cd..a80b5704 100644 --- a/src/adb.js +++ b/src/adb.js @@ -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;