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"