Skip to content

Commit

Permalink
build: run shlex on cmds sent via ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhendrickson13 committed Sep 20, 2024
1 parent e1c8711 commit c3961c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/make_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import os
import pathlib
import platform
import shlex
import subprocess
import sys
import jinja2
Expand Down Expand Up @@ -142,7 +143,7 @@ def build_on_remote_host(self):
# Run each command and exit on bad status if failure
for cmd in build_cmds:
if self.run_ssh_cmd(cmd) != 0:
print(f"Command '{cmd}' failed.")
print(f"Command '{shlex.split(cmd)}' failed.")
sys.exit(1)

# Retrieve the built package
Expand Down

0 comments on commit c3961c6

Please sign in to comment.