Skip to content

Commit 9217fbb

Browse files
authored
Escape TARGET and SOURCES variables in command
1 parent 85ab51f commit 9217fbb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

builder/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -522,8 +522,8 @@ def switch_off_ldf():
522522
"--flash-size",
523523
board.get("upload.flash_size", "4MB"),
524524
"-o",
525-
"$TARGET",
526-
"$SOURCES",
525+
"\"$TARGET\"",
526+
"\"$SOURCES\"",
527527
]
528528
),
529529
"Building $TARGET",
@@ -792,7 +792,7 @@ def firmware_metrics(target, source, env):
792792
"-Q",
793793
"-D",
794794
],
795-
UPLOADCMD='$UPLOADER $UPLOADERFLAGS "$SOURCE"',
795+
UPLOADCMD='"$UPLOADER" $UPLOADERFLAGS "$SOURCE"',
796796
)
797797

798798
# Configure upload protocol: Debug tools (OpenOCD)

0 commit comments

Comments
 (0)