mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 06:46:09 +08:00
github仓库更新添加默认
This commit is contained in:
parent
9c1addae69
commit
e4f8c58eab
3
shell/test.sh
Normal file
3
shell/test.sh
Normal file
|
@ -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\//}"
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue
Block a user