Skip to content

Commit

Permalink
build: shlex split 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 ea14a2d
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 @@ -141,7 +142,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:
if self.run_ssh_cmd(shlex.split(cmd)) != 0:
print(f"Command '{cmd}' failed.")
sys.exit(1)

Expand Down

0 comments on commit ea14a2d

Please sign in to comment.