From f889ff50508f6b8277626cc48fdfd30018d16724 Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Thu, 21 Dec 2023 20:33:30 +0100 Subject: [PATCH] fix: split command string before running subprocess MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - use command.split(" ") to convert command to a list before running 🤖 --- lib/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/helper.py b/lib/helper.py index bb9138d..9eae836 100644 --- a/lib/helper.py +++ b/lib/helper.py @@ -32,7 +32,7 @@ def run_subprocess(command: str, workdir: str) -> bool: bool: False if subprocess fails """ try: - log.debug(subprocess.run(command, cwd=workdir, shell=True, text=True)) + log.debug(subprocess.run(command.split(" "), cwd=workdir, text=True)) except subprocess.CalledProcessError: return False