From 1327c1e893a1436a665397a5ac433970ad0e2f17 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 10 Sep 2024 06:51:43 -0700 Subject: [PATCH] style: format command string for PowerShell execution --- aider/run_cmd.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aider/run_cmd.py b/aider/run_cmd.py index 10aa572cb..5434b4a7a 100644 --- a/aider/run_cmd.py +++ b/aider/run_cmd.py @@ -31,7 +31,9 @@ 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 -ExecutionPolicy Bypass -Command "& {{({command}) | Out-String}}"' + command = ( + f'powershell -ExecutionPolicy Bypass -Command "& {{({command}) | Out-String}}"' + ) else: shell = "cmd" else: