Skip to content

Commit 0997ffc

Browse files
committed
escape $ correctly
not even sure what the code is supposed to do
1 parent 7540f50 commit 0997ffc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tockloader/linkserver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def _gather_linkserver_cmdline(self, command, binary, write=True):
109109
def _run_linkserver_command(self, command, binary, write=True):
110110
command, temp_bin = self._gather_linkserver_cmdline(command, binary, write)
111111

112-
logging.debug('Running "{}".'.format(command.replace("$", "\$")))
112+
logging.debug('Running "{}".'.format(command.replace("$", "\\$")))
113113

114114
def print_output(subp):
115115
response = ""

tockloader/stlink.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def _gather_stlink_cmdline(self, command, binary, write=True):
9999
def _run_stlink_command(self, command, binary, write=True):
100100
stlink_command, temp_bin = self._gather_stlink_cmdline(command, binary, write)
101101

102-
logging.debug('Running "{}".'.format(stlink_command.replace("$", "\$")))
102+
logging.debug('Running "{}".'.format(stlink_command.replace("$", "\\$")))
103103

104104
def print_output(subp):
105105
response = ""

0 commit comments

Comments
 (0)