Skip to content

Commit

Permalink
refactor: replace shlex.join with printable_shell_command
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-gauthier committed Sep 1, 2024
1 parent 8c229e5 commit 9bc61a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aider/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def get_pip_install(args):

def run_install(cmd):
print()
print("Installing:", shlex.join(cmd))
print("Installing:", printable_shell_command(cmd))

try:
output = []
Expand Down Expand Up @@ -316,7 +316,7 @@ def check_pip_install_extra(io, module, prompt, pip_install_cmd):
if prompt:
io.tool_error(prompt)

if not io.confirm_ask("Run pip install?", default="y", subject=shlex.join(cmd)):
if not io.confirm_ask("Run pip install?", default="y", subject=printable_shell_command(cmd)):
return

success, output = run_install(cmd)
Expand Down

0 comments on commit 9bc61a6

Please sign in to comment.