Skip to content

Commit

Permalink
Merge pull request #226 from matttbe/quote-remote-cmd
Browse files Browse the repository at this point in the history
console/ssh: properly quote the remote cmd
  • Loading branch information
matttbe authored Jan 29, 2025
2 parents e05552f + 00940a0 commit 6de21c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtme_ng/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,7 @@ def _get_virtme_ssh_client(self, args):

def _get_virtme_remote_cmd(self, args):
if args.remote_cmd is not None:
self.virtme_param["remote_cmd"] = "--remote-cmd '" + args.remote_cmd + "'"
self.virtme_param["remote_cmd"] = f"--remote-cmd {shlex.quote(args.remote_cmd)}"
else:
self.virtme_param["remote_cmd"] = ""

Expand Down

0 comments on commit 6de21c4

Please sign in to comment.