mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-14 04:16:34 +00:00
execute_shell_command: Use shell=False on Windows
This commit is contained in:
1 parent
02174d789a
commit
4d5ab9a880
1 file changed
+2
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user