From 6acb39013385df95882fe8a4f841d4aebeeb4014 Mon Sep 17 00:00:00 2001 From: dami Date: Mon, 22 Jun 2026 17:30:59 +0800 Subject: [PATCH] Update update.sh --- plugins/nezha/update.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/nezha/update.sh b/plugins/nezha/update.sh index 1380ad197..c4db8cf9b 100644 --- a/plugins/nezha/update.sh +++ b/plugins/nezha/update.sh @@ -3,10 +3,12 @@ PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export PATH # cd /www/server/mdserver-web && bash plugins/nezha/update.sh - curPath=`pwd` +serverPath=$(dirname "$curPath") echo $curPath +nezhaDir=${serverPath}/source/nezha + REPO="nezhahq/nezha" LATEST_VERSION=$(curl -sL "https://api.github.com/repos/$REPO/releases/latest" | jq -r '.tag_name') echo "最新版本是: $LATEST_VERSION"