From 5886e782997484c77320a55e2e8fa69b1ce60fdb Mon Sep 17 00:00:00 2001 From: whyour Date: Thu, 1 Dec 2022 16:25:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=8E=B7=E5=8F=96=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=88=86=E6=94=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/update.sh b/shell/update.sh index af1fd17d..0d54a78b 100755 --- a/shell/update.sh +++ b/shell/update.sh @@ -247,14 +247,14 @@ usage() { ## 更新qinglong update_qinglong() { local mirror="github" - local githubStatus=$(curl -s -m 3 -IL "https://github.com" | grep 200) + local githubStatus=$(curl -s -m 2 -IL "https://github.com" | grep 200) if [ "$githubStatus" == "" ]; then mirror="gitee" fi echo -e "\n使用 ${mirror} 源更新...\n" export isFirstStartServer=false - local all_branch=$(git branch -a) + local all_branch=$(cd ${dir_root} && git branch -a) local primary_branch="master" if [[ "${all_branch}" =~ "${current_branch}" ]]; then primary_branch="${current_branch}"