Skip to content

Commit ea14a2d

Browse files
build: shlex split cmds sent via ssh
1 parent e1c8711 commit ea14a2d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tools/make_package.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import os
2020
import pathlib
2121
import platform
22+
import shlex
2223
import subprocess
2324
import sys
2425
import jinja2
@@ -141,7 +142,7 @@ def build_on_remote_host(self):
141142

142143
# Run each command and exit on bad status if failure
143144
for cmd in build_cmds:
144-
if self.run_ssh_cmd(cmd) != 0:
145+
if self.run_ssh_cmd(shlex.split(cmd)) != 0:
145146
print(f"Command '{cmd}' failed.")
146147
sys.exit(1)
147148

0 commit comments

Comments
 (0)