mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 17:55:01 +00:00
fix: improve PowerShell command execution and output capture on Windows
This commit is contained in:
parent
e3b7b80280
commit
4605969921
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ def run_cmd_subprocess(command, verbose=False):
|
|||
# Use PowerShell if it's the parent process
|
||||
if "powershell" in os.environ.get("PSModulePath", "").lower():
|
||||
shell = "powershell"
|
||||
command = f"powershell -Command {command}"
|
||||
command = f'powershell -ExecutionPolicy Bypass -Command "& {{({command}) | Out-String}}"'
|
||||
else:
|
||||
shell = "cmd"
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue