Update nexus.sh
This commit is contained in:
		
							parent
							
								
									31e7b5bd94
								
							
						
					
					
						commit
						a4fa98ff5a
					
				
							
								
								
									
										20
									
								
								nexus.sh
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								nexus.sh
									
									
									
									
									
								
							@ -1,5 +1,25 @@
 | 
				
			|||||||
#!/bin/bash
 | 
					#!/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() {
 | 
					function main_menu() {
 | 
				
			||||||
    while true; do
 | 
					    while true; do
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user