fix: split command string before running subprocess
- use command.split(" ") to convert command to a list before running
🤖
This commit is contained in:
parent
899b1f1c81
commit
f889ff5050
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ def run_subprocess(command: str, workdir: str) -> bool:
|
||||||
bool: False if subprocess fails
|
bool: False if subprocess fails
|
||||||
"""
|
"""
|
||||||
try:
|
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:
|
except subprocess.CalledProcessError:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue