From 79ffc2405a449ce7fa3d7ae83b6d806b0d7af72b Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 27 Aug 2024 09:09:28 -0700 Subject: [PATCH] style: Fix formatting in utils.py --- aider/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aider/utils.py b/aider/utils.py index d9119b241..0ce447d40 100644 --- a/aider/utils.py +++ b/aider/utils.py @@ -56,8 +56,8 @@ def run_interactive_command_pexpect(command): try: # Use the SHELL environment variable, falling back to /bin/sh if not set - shell = os.environ.get('SHELL', '/bin/sh') - + shell = os.environ.get("SHELL", "/bin/sh") + if os.path.exists(shell): # Use the shell from SHELL environment variable child = pexpect.spawn(shell, args=["-c", command], encoding="utf-8")