mirror of
https://github.com/everett7623/nodeloc_vps_test.git
synced 2024-12-26 00:05:18 +00:00
Update Nlbench.sh
This commit is contained in:
parent
45c2016731
commit
c84aa8d0d5
@ -23,13 +23,14 @@ check_update() {
|
||||
echo "正在检查更新..."
|
||||
|
||||
# 从GitHub获取最新版本号
|
||||
latest_version=$(curl -s https://raw.githubusercontent.com/everett7623/nodeloc_vps_test/main/version.sh)
|
||||
latest_version=$(curl -s https://raw.githubusercontent.com/everett7623/nodeloc_vps_test/main/version.sh | tr -d '\n\r')
|
||||
|
||||
if [ -z "$latest_version" ]; then
|
||||
echo "无法获取最新版本信息。"
|
||||
return
|
||||
fi
|
||||
|
||||
# 比较版本号
|
||||
if [ "$CURRENT_VERSION" != "$latest_version" ]; then
|
||||
echo "发现新版本: $latest_version"
|
||||
echo "当前版本: $CURRENT_VERSION"
|
||||
|
Loading…
Reference in New Issue
Block a user