Update nexus.sh

This commit is contained in:
sdohuajia 2024-10-09 23:09:07 +08:00 committed by GitHub
parent 2c6533bb37
commit f728da30d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,8 +30,9 @@ function main_menu() {
echo "4. 删除节点"
echo "5. 显示 ID" # 新增选项
echo "6. 改进的状态逻辑" # 新增选项
echo "7) 退出"
read -p "请输入选项 (1-6): " choice
read -p "请输入选项 (1-7): " choice
case $choice in
1)
@ -52,6 +53,10 @@ function main_menu() {
6)
improved_status_logic # 调用改进的状态逻辑函数
;;
7)
echo "退出脚本。"
exit 0
;;
*)
echo "无效选项,请重新选择。"
;;