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
dbaf51424e
commit
82e0b8b24b
@ -19,7 +19,6 @@ if [ "$(id -u)" != "0" ]; then
|
||||
echo "已获取 sudo 权限。"
|
||||
fi
|
||||
|
||||
# 更新脚本
|
||||
update_scripts() {
|
||||
CURRENT_VERSION="2024-07-05 v1.0.0" # 最新版本号
|
||||
SCRIPT_URL="https://raw.githubusercontent.com/everett7623/nodeloc_vps_test/main/Nlbench.sh"
|
||||
@ -44,7 +43,7 @@ update_scripts() {
|
||||
sed -i "s/^CURRENT_VERSION=.*/CURRENT_VERSION=\"$NEW_VERSION\"/" "$0"
|
||||
|
||||
# 替换脚本文件
|
||||
if mv /tmp/Nlbench_beta.sh "$0"; then
|
||||
if mv /tmp/Nlbench.sh "$0"; then
|
||||
chmod +x "$0"
|
||||
echo -e "${GREEN}脚本更新成功!新版本: $NEW_VERSION${NC}"
|
||||
echo -e "${YELLOW}请等待 3 秒...${NC}"
|
||||
@ -66,6 +65,7 @@ update_scripts() {
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
# 检查并安装依赖
|
||||
install_dependencies() {
|
||||
echo -e "${YELLOW}正在检查并安装必要的依赖项...${NC}"
|
||||
|
Loading…
Reference in New Issue
Block a user