From 388a2ab226b802c8a7ef43bfe0de931ea8bfbdae Mon Sep 17 00:00:00 2001 From: ChristianSwift Date: Fri, 6 Feb 2026 11:26:58 +0800 Subject: [PATCH] update --- activated.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/activated.sh b/activated.sh index d0fd73a..986e948 100755 --- a/activated.sh +++ b/activated.sh @@ -17,7 +17,7 @@ install() { case "${STATUS}" in "000") rm -f "${file}" - echo "Error: ${STATUS}, Failed to connect to GitHub. Please check your network and try again." + echo "Error: ${STATUS}, Failed to connect to Gitee. Please check your network and try again." return 1 ;; "200") @@ -26,7 +26,7 @@ install() { ;; "403") rm -f "${file}" - echo "Error: ${STATUS}, Access forbidden to the package on GitHub." + echo "Error: ${STATUS}, Access forbidden to the package on Gitee." return 1 ;; "404") @@ -60,9 +60,8 @@ install() { if [ ! -d "${WORK_PATH}/patch/${VERSION}/${SS_NAME}" ]; then REPO="${REPO:-"ohyeah521/Surveillance-Station"}" BRANCH="${BRANCH:-"main"}" - # 检查版本是否存在 - VERURL="${GPROXY}https://github.com/${REPO}/tree/${BRANCH}/patch/${VERSION}/${SS_NAME}" + VERURL="${GPROXY}https://gitee.com/christianswift/surveillance-station-9/tree/${BRANCH}/patch/${VERSION}/${SS_NAME}" STATUS="$(curl -skL ${CPROXY:+-x ${CPROXY}} -w "%{http_code}" "${VERURL}" -o /dev/null 2>/dev/null)" STATUS="${STATUS: -3}" case "${STATUS}" in @@ -89,7 +88,7 @@ install() { esac # 获取 patch 文件 - URL_FIX="${GPROXY}https://github.com/${REPO}/raw/${BRANCH}/patch/${VERSION}/${SS_NAME}" + URL_FIX="${GPROXY}https://gitee.com/christianswift/surveillance-station-9/raw/${BRANCH}/patch/${VERSION}/${SS_NAME}" for F in "${PATCH_FILES[@]}"; do _get_files "${URL_FIX}/${F}" "${WORK_PATH}/patch/${VERSION}/${SS_NAME}/${F}" if [ $? -ne 0 ]; then