mirror of
https://github.com/everett7623/nodeloc_vps_test.git
synced 2025-01-01 03:05:18 +00:00
Update Nlbench.sh
This commit is contained in:
parent
6799236803
commit
c1d0bb1354
@ -22,7 +22,7 @@ fi
|
|||||||
# 更新脚本
|
# 更新脚本
|
||||||
update_scripts() {
|
update_scripts() {
|
||||||
CURRENT_VERSION="2024-07-05 v1.0.0" # 最新版本号
|
CURRENT_VERSION="2024-07-05 v1.0.0" # 最新版本号
|
||||||
SCRIPT_URL="https://raw.githubusercontent.com/everett7623/main/Nlbencha.sh"
|
SCRIPT_URL="https://raw.githubusercontent.com/everett7623/main/Nlbench.sh"
|
||||||
VERSION_URL="https://raw.githubusercontent.com/everett7623/main/version.sh"
|
VERSION_URL="https://raw.githubusercontent.com/everett7623/main/version.sh"
|
||||||
|
|
||||||
# 获取远程版本号
|
# 获取远程版本号
|
||||||
@ -39,8 +39,8 @@ update_scripts() {
|
|||||||
echo -e "${BLUE}正在更新...${NC}"
|
echo -e "${BLUE}正在更新...${NC}"
|
||||||
|
|
||||||
# 下载新的脚本文件
|
# 下载新的脚本文件
|
||||||
if curl -s -o /tmp/Nlbencha.sh $SCRIPT_URL; then
|
if curl -s -o /tmp/Nlbench.sh $SCRIPT_URL; then
|
||||||
NEW_VERSION=$(grep '^VERSION=' /tmp/Nlbencha.sh | cut -d'"' -f2)
|
NEW_VERSION=$(grep '^VERSION=' /tmp/Nlbench.sh | cut -d'"' -f2)
|
||||||
sed -i "s/^CURRENT_VERSION=.*/CURRENT_VERSION=\"$NEW_VERSION\"/" "$0"
|
sed -i "s/^CURRENT_VERSION=.*/CURRENT_VERSION=\"$NEW_VERSION\"/" "$0"
|
||||||
|
|
||||||
# 替换脚本文件
|
# 替换脚本文件
|
||||||
|
Loading…
Reference in New Issue
Block a user