mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-07 05:05:01 +00:00
refactor: use shlex.join for safer command string representation
This commit is contained in:
parent
7c013dba6a
commit
0c5cd64b83
2 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
import itertools
|
||||
import os
|
||||
import shlex
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
|
@ -314,7 +315,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=" ".join(cmd)):
|
||||
if not io.confirm_ask("Run pip install?", default="y", subject=shlex.join(cmd)):
|
||||
return
|
||||
|
||||
success, output = run_install(cmd)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue