Skip to content

Commit

Permalink
Fixup OpenOCD actions escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgerhardt committed Sep 15, 2024
1 parent 739f2bd commit 9082899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def generate_openocd_action(args: List[str], action_name:str):
default_args: List[str] = debug_tools.get(upload_protocol).get("server").get("arguments", [])
# small fixup with shell escaping. Quote args that have spaces in them.
for (i, arg) in enumerate(default_args.copy()):
if " " in arg:
if " " in arg and not arg.startswith('"'):
default_args[i] = '"%s"' % arg
cmd.extend(default_args)
cmd.extend([
Expand Down

0 comments on commit 9082899

Please sign in to comment.