From 8ab2dc3280b653c04648fd9ab822d34e1247e17b Mon Sep 17 00:00:00 2001 From: whyour Date: Fri, 22 Mar 2024 23:01:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=87=8D=E5=90=AF=E5=91=BD?= =?UTF-8?q?=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/update.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shell/update.sh b/shell/update.sh index 1f2601ab..fd0462a9 100755 --- a/shell/update.sh +++ b/shell/update.sh @@ -240,6 +240,7 @@ reload_qinglong() { fi if [[ "$reload_target" == 'system' ]]; then + rm -rf ${dir_root}/back ${dir_root}/cli ${dir_root}/docker ${dir_root}/sample ${dir_root}/shell ${dir_root}/src mv -f ${dir_tmp}/qinglong-${primary_branch}/* ${dir_root}/ rm -rf $dir_static/* mv -f ${dir_tmp}/qinglong-static-${primary_branch}/* ${dir_static}/ @@ -260,7 +261,7 @@ update_qinglong() { local mirror="gitee" local downloadQLUrl="https://gitee.com/whyour/qinglong/repository/archive" local downloadStaticUrl="https://gitee.com/whyour/qinglong-static/repository/archive" - local githubStatus=$(curl -s -m 2 -IL "https://google.com" | grep 200) + local githubStatus=$(curl -s --noproxy "*" -m 2 -IL "https://google.com" | grep 200) if [[ ! -z $githubStatus ]]; then mirror="github" downloadQLUrl="https://github.com/whyour/qinglong/archive/refs/heads" @@ -314,6 +315,7 @@ check_update_dep() { if [[ "$needRestart" == 'true' ]]; then delete_pm2 + rm -rf ${dir_root}/back ${dir_root}/cli ${dir_root}/docker ${dir_root}/sample ${dir_root}/shell ${dir_root}/src mv -f ${dir_tmp}/qinglong-${primary_branch}/* ${dir_root}/ rm -rf $dir_static/* mv -f ${dir_tmp}/qinglong-static-${primary_branch}/* ${dir_static}/