From 08acfefd1878160005ee1cbee4b1e074d0146243 Mon Sep 17 00:00:00 2001 From: uubulb Date: Wed, 6 Nov 2024 11:06:09 +0800 Subject: [PATCH] update gitee url --- script/install.sh | 6 +++++- script/install_en.sh | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/script/install.sh b/script/install.sh index 2efc6ae..c3c34dc 100755 --- a/script/install.sh +++ b/script/install.sh @@ -221,7 +221,11 @@ update_script() { # return 1 #fi #echo "当前最新版本为: ${new_version}" - curl -sL https://raw.githubusercontent.com/nezhahq/scripts/main/install.sh -o /tmp/nezha.sh + if [ -z "$CN" ]; then + curl -sL https://raw.githubusercontent.com/nezhahq/scripts/main/install.sh -o /tmp/nezha.sh + else + curl -sL https://gitee.com/naibahq/scripts/raw/main/install.sh -o /tmp/nezha.sh + fi mv -f /tmp/nezha.sh ./nezha.sh && chmod a+x ./nezha.sh echo "3s后执行新脚本" diff --git a/script/install_en.sh b/script/install_en.sh index ffef368..031a44a 100755 --- a/script/install_en.sh +++ b/script/install_en.sh @@ -220,7 +220,11 @@ update_script() { # return 1 #fi #echo "The current latest version is: ${new_version}" - curl -sL https://raw.githubusercontent.com/nezhahq/scripts/main/install_en.sh -o /tmp/nezha.sh + if [ -z "$CN" ]; then + curl -sL https://raw.githubusercontent.com/nezhahq/scripts/main/install_en.sh -o /tmp/nezha.sh + else + curl -sL https://gitee.com/naibahq/scripts/raw/main/install_en.sh -o /tmp/nezha.sh + fi mv -f /tmp/nezha.sh ./nezha.sh && chmod a+x ./nezha.sh echo "Execute new script after 3s"