Fix curl-pipe menu exiting immediately by reading from /dev/tty.
Re-exec manage.sh with terminal stdin after clone or when repo exists, and route all prompts through cm_read. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -59,7 +59,7 @@ show_update_menu() {
|
||||
echo " 3-3) 深度重装(保留 .env,清库)"
|
||||
echo " 0) 返回主菜单"
|
||||
local choice=""
|
||||
read -r -p "请选择 [0/3-1/3-2/3-3]: " choice
|
||||
cm_read choice "请选择 [0/3-1/3-2/3-3]: "
|
||||
case "${choice}" in
|
||||
3-1|31|1) update_quick; break ;;
|
||||
3-2|32|2) update_deps; break ;;
|
||||
|
||||
Reference in New Issue
Block a user