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