From d6f51988930da4c603c83306674bf913b931a1f7 Mon Sep 17 00:00:00 2001 From: hanhh <18330117883@163.com> Date: Thu, 5 Aug 2021 01:07:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=A6=96=E6=AC=A1=E6=8B=89?= =?UTF-8?q?=E5=8C=BArepo=20cdn=E6=97=A0=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/update.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/shell/update.sh b/shell/update.sh index faad93e8..01e0ce6a 100755 --- a/shell/update.sh +++ b/shell/update.sh @@ -152,11 +152,12 @@ update_repo() { local repo_path="${dir_repo}/${author}_${repo}" [[ $branch ]] && repo_path="${repo_path}_${branch}" + local formatUrl="${github_proxy_url}${url/https:\/\/ghproxy.com\//}" if [ -d ${repo_path}/.git ]; then - reset_romote_url ${repo_path} "${github_proxy_url}${url/https:\/\/ghproxy.com\//}" "${branch}" + reset_romote_url ${repo_path} "${formatUrl}" "${branch}" git_pull_scripts ${repo_path} "${branch}" else - git_clone_scripts ${url} ${repo_path} "${branch}" + git_clone_scripts "${formatUrl}" ${repo_path} "${branch}" fi if [[ $exit_status -eq 0 ]]; then echo -e "\nĉ›´ĉ–°${repo_path}ĉˆċŠŸ...\n"