mirror of
https://github.com/whyour/qinglong.git
synced 2026-06-30 20:35:09 +08:00
github仓库更新添加默认
This commit is contained in:
@@ -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\//}"
|
||||
+1
-1
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user