execute_shell_command: Use shell=False on Windows

This commit is contained in:
Dominik Jain committed 2025-05-27 15:24:54 +02:00
1 parent 02174d789a
commit 4d5ab9a880
1 file changed
+2 -1
+2 -1
View File
@@ -1,4 +1,5 @@
import os
import platform
import subprocess
from pydantic import BaseModel
@@ -25,7 +26,7 @@ def execute_shell_command(command: str, cwd: str | None = None, capture_stderr:
process = subprocess.Popen(
command,
shell=True,
shell=platform.system() != "Windows",
stdout=subprocess.PIPE,
stderr=subprocess.PIPE if capture_stderr else None,
text=True,