From ea14a2d4e413e01e2a36bdab4cd66015684bb447 Mon Sep 17 00:00:00 2001 From: Jared Hendrickson Date: Thu, 19 Sep 2024 18:31:50 -0600 Subject: [PATCH] build: shlex split cmds sent via ssh --- tools/make_package.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/make_package.py b/tools/make_package.py index 04d99730b..b1d0cbc8a 100644 --- a/tools/make_package.py +++ b/tools/make_package.py @@ -19,6 +19,7 @@ import os import pathlib import platform +import shlex import subprocess import sys import jinja2 @@ -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)