Update nexus.sh

This commit is contained in:
sdohuajia 2024-10-09 19:48:15 +08:00 committed by GitHub
parent 31e7b5bd94
commit a4fa98ff5a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,25 @@
#!/bin/bash
# 自定义状态显示函数
show_status() {
local message="$1"
local status="$2"
case $status in
"error")
echo -e "${RED}${BOLD}🚫 出错: ${message}${NORMAL}"
;;
"progress")
echo -e "${YELLOW}${BOLD}🔄 进行中: ${message}${NORMAL}"
;;
"success")
echo -e "${GREEN}${BOLD}✅ 成功: ${message}${NORMAL}"
;;
*)
echo -e "${PINK}${BOLD}${message}${NORMAL}"
;;
esac
}
# 主菜单函数
function main_menu() {
while true; do