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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user