From 89082fffa22893ecee7a7dad64e3c9c404c5ac9f Mon Sep 17 00:00:00 2001 From: Jensfrank Date: Thu, 18 Jul 2024 14:22:53 +0800 Subject: [PATCH] Update Nlbench_beta.sh --- Nlbench_beta.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Nlbench_beta.sh b/Nlbench_beta.sh index 9c0e0ae..1e06f57 100644 --- a/Nlbench_beta.sh +++ b/Nlbench_beta.sh @@ -32,12 +32,12 @@ update_scripts() { echo -e "${BLUE}发现新版本 $REMOTE_VERSION,当前版本 $CURRENT_VERSION${NC}" echo -e "${BLUE}正在更新...${NC}" - if curl -s -o /tmp/Nlbench.sh $SCRIPT_URL; then - NEW_VERSION=$(grep '^CURRENT_VERSION=' /tmp/Nlbench.sh | cut -d'"' -f2) + if curl -s -o /tmp/NLbench_beta.sh $SCRIPT_URL; then + NEW_VERSION=$(grep '^CURRENT_VERSION=' /tmp/NLbench_beta.sh | cut -d'"' -f2) if [ "$NEW_VERSION" != "$CURRENT_VERSION" ]; then sed -i "s/^CURRENT_VERSION=.*/CURRENT_VERSION=\"$NEW_VERSION\"/" "$0" - if mv /tmp/Nlbench.sh "$0"; then + if mv /tmp/NLbench_beta.sh "$0"; then chmod +x "$0" echo -e "${GREEN}脚本更新成功!新版本: $NEW_VERSION${NC}" echo -e "${YELLOW}正在重新启动脚本以应用更新...${NC}"