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:
dekun
2026-07-12 12:36:34 +08:00
parent 95895d53b6
commit acb61a413b
4 changed files with 37 additions and 7 deletions
+1 -1
View File
@@ -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 ;;