Fix pip --progress-bar for pip 26+ so instance deploy can install deps.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-17 15:47:33 +08:00
parent 0f12e0a8ea
commit 572239f69c
2 changed files with 24 additions and 5 deletions
+2 -5
View File
@@ -192,12 +192,9 @@ install_node_pm2() {
}
# pip 安装时显示进度条(避免 -q 静默导致用户以为卡死)
# pip>=26 已移除 ascii,仅支持 auto|on|off|raw
pip_progress_bar_arg() {
if [[ -t 1 ]] || [[ -t 2 ]]; then
echo "on"
else
echo "ascii"
fi
echo "on"
}
pip_upgrade_tools() {