Skip to content

Commit

Permalink
use double quotes in programmer field (#458)
Browse files Browse the repository at this point in the history
* use double quotes in programmer field

By using double quotes in the programmer field the path does not get split by the agent in case of a whitespace

* 2.4.2
  • Loading branch information
umbynos authored Feb 23, 2021
1 parent 8355fba commit 95383da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "arduino-create-agent-js-client",
"version": "2.4.1",
"version": "2.4.2",
"description": "JS module providing discovery of the Arduino Create Plugin and communication with it",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/firmware-updater.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export default class FirmwareUpdater {
const data = {
board: boardId,
port,
commandline: `"{runtime.tools.fwupdater.path}/${updaterBinaryName}" -flasher {network.password} -port {serial.port} -restore_binary "{build.path}/{build.project_name}.bin" -programmer ${programmer}`,
commandline: `"{runtime.tools.fwupdater.path}/${updaterBinaryName}" -flasher {network.password} -port {serial.port} -restore_binary "{build.path}/{build.project_name}.bin" -programmer "${programmer}"`,
hex: '',
extra: {
auth: {
Expand Down

0 comments on commit 95383da

Please sign in to comment.