Update Nlbench_beta.sh

This commit is contained in:
Jensfrank 2024-07-07 02:18:40 +08:00 committed by GitHub
parent 1e3606a276
commit b3efb8dcdd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,6 +9,15 @@ GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color
# 定义渐变颜色数组
colors=(
'\033[38;2;0;255;0m' # 绿色
'\033[38;2;64;255;0m'
'\033[38;2;128;255;0m'
'\033[38;2;192;255;0m'
'\033[38;2;255;255;0m' # 黄色
)
# 检查 root 权限并获取 sudo 权限
if [ "$(id -u)" != "0" ]; then
echo "此脚本需要 root 权限运行。"
@ -462,11 +471,13 @@ show_welcome() {
echo -e "${GREEN}GitHub地址: https://github.com/everett7623/nodeloc_vps_test${NC}"
echo -e "${GREEN}VPS选购: https://www.nodeloc.com/vps${NC}"
echo ""
echo -e "${YELLOW} _ _ ___ ____ _____ _ ___ ____ __ __ ____ ____${NC}"
echo -e "${YELLOW}| \\ | | / _ \\ | _ \\ | ____|| | / _ \\ / ___| \\ \\ / /| _ \\ / ___|${NC}"
echo -e "${YELLOW}| \\| || | | || | | || _| | | | | | || | \\ \\ / / | |_) |\\___ \\${NC}"
echo -e "${YELLOW}| |\\ || |_| || |_| || |___ | |___| |_| || |___ \\ V / | __/ ___) |${NC}"
echo -e "${YELLOW}|_| \\_| \\___/ |____/ |_____||_____|\___/ \\____| \\_/ |_| |____/${NC}"
echo -e "${colors[0]} # # ####### ###### ####### # ####### ##### # # ###### ##### ${NC}"
echo -e "${colors[1]} ## # # # # # # # # # # # # # # # # # ${NC}"
echo -e "${colors[2]} # # # # # # # # # # # # # # # # # ${NC}"
echo -e "${colors[3]} # # # # # # # ##### # # # ##### # # ###### ##### ${NC}"
echo -e "${colors[4]} # # # # # # # # # # # # # # # # ${NC}"
echo -e "${colors[3]} # ## # # # # # # # # # # # # # # # ${NC}"
echo -e "${colors[2]} # # ####### ###### ####### ####### ####### ##### # # ##### ${NC}"
echo ""
echo "支持Ubuntu/Debian"
echo ""