From e4f8c58eab0330642ba1af7ed9c47fef568d6805 Mon Sep 17 00:00:00 2001 From: hanhh <18330117883@163.com> Date: Thu, 3 Jun 2021 23:41:40 +0800 Subject: [PATCH] =?UTF-8?q?github=E4=BB=93=E5=BA=93=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=BB=98=E8=AE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/test.sh | 3 +++ shell/update.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 shell/test.sh diff --git a/shell/test.sh b/shell/test.sh new file mode 100644 index 00000000..817ae298 --- /dev/null +++ b/shell/test.sh @@ -0,0 +1,3 @@ +url="https://ghproxy.com/https://github.com/zooPanda/zoo.git" +github_proxy_url="https://ghproxy.com/" +echo "${github_proxy_url}${url/https:\/\/ghproxy.com\//}" \ No newline at end of file diff --git a/shell/update.sh b/shell/update.sh index bdf636c2..e6fc219c 100755 --- a/shell/update.sh +++ b/shell/update.sh @@ -165,7 +165,7 @@ update_repo() { local repo_path="${dir_repo}/${author}_${repo}" if [ -d ${repo_path}/.git ]; then - reset_romote_url ${repo_path} ${url} + reset_romote_url ${repo_path} "${github_proxy_url}${url/https:\/\/ghproxy.com\//}" git_pull_scripts ${repo_path} else git_clone_scripts ${url} ${repo_path}