Update Nlbench_beta.sh

This commit is contained in:
Jensfrank 2024-07-18 14:19:21 +08:00 committed by GitHub
parent 48f2083bc9
commit 28f70512ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,10 @@
#!/bin/bash
# 定义版本
CURRENT_VERSION="2024-07-19 v1.0.6" # 最新版本号
SCRIPT_URL="https://raw.githubusercontent.com/everett7623/nodeloc_vps_test/main/Nlbench_beta.sh"
VERSION_URL="https://raw.githubusercontent.com/everett7623/nodeloc_vps_test/main/version.sh"
# 定义颜色
RED='\033[0;31m'
GREEN='\033[0;32m'
@ -15,11 +20,6 @@ colors=(
'\033[38;2;255;255;0m' # 黄色
)
# 定义版本
CURRENT_VERSION="2024-07-19 v1.0.6" # 最新版本号
SCRIPT_URL="https://raw.githubusercontent.com/everett7623/nodeloc_vps_test/main/Nlbench_beta.sh"
VERSION_URL="https://raw.githubusercontent.com/everett7623/nodeloc_vps_test/main/version.sh"
# 更新脚本
update_scripts() {
REMOTE_VERSION=$(curl -s $VERSION_URL | grep -oP '(?<=#\s)[\d-]+\sv[\d.]+(?=\s-)')