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
@@ -52,7 +52,7 @@ handle_existing_install() {
echo " b) 修复环境(重建 venv,保留 .env 与数据库)"
echo " c) 深度重装(保留 .env,清库,见 reinstall.sh)"
local choice=""
read -r -p "请选择 [a/b/c]: " choice
cm_read choice "请选择 [a/b/c]: "
case "${choice}" in
b|B)
install_repair