From b2fc2aa847ed8daca6fdb998b2cacff246ab6d26 Mon Sep 17 00:00:00 2001 From: sdohuajia <63113882+sdohuajia@users.noreply.github.com> Date: Wed, 9 Oct 2024 20:06:36 +0800 Subject: [PATCH] Update nexus.sh --- nexus.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/nexus.sh b/nexus.sh index a42a919..3146d6f 100644 --- a/nexus.sh +++ b/nexus.sh @@ -79,7 +79,8 @@ function show_id() { echo "文件 /root/.nexus/prover-id 不存在。" fi - read -n 1 -s # 等待用户按任意键 + # 等待用户按任意键返回主菜单 + read -p "按任意键返回主菜单" } # 启动节点的函数 @@ -162,7 +163,9 @@ EOF"; then fi echo "节点启动成功!" - read -n 1 -s # 等待用户按任意键 + + # 等待用户按任意键返回主菜单 + read -p "按任意键返回主菜单" } # 查看 Prover 状态的函数 @@ -183,7 +186,9 @@ function delete_node() { sudo systemctl stop $SERVICE_NAME.service sudo systemctl disable $SERVICE_NAME.service echo "成功删除节点,按任意键返回主菜单。" - read -n 1 -s # 等待用户按任意键 + + # 等待用户按任意键返回主菜单 + read -p "按任意键返回主菜单" } # 调用主菜单函数