mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 06:46:09 +08:00
修复ql update 逻辑
This commit is contained in:
parent
65bc4c40e9
commit
1cf40624da
|
@ -166,8 +166,7 @@ update_repo() {
|
||||||
local repo_path="${dir_repo}/${author}_${repo}"
|
local repo_path="${dir_repo}/${author}_${repo}"
|
||||||
if [ -d ${repo_path}/.git ]; then
|
if [ -d ${repo_path}/.git ]; then
|
||||||
reset_romote_url ${repo_path} ${url}
|
reset_romote_url ${repo_path} ${url}
|
||||||
git fetch
|
git_pull_scripts ${repo_path}
|
||||||
git reset --hard origin/master >/dev/null 2>&1
|
|
||||||
else
|
else
|
||||||
git_clone_scripts ${url} ${repo_path}
|
git_clone_scripts ${url} ${repo_path}
|
||||||
fi
|
fi
|
||||||
|
@ -264,7 +263,8 @@ update_qinglong() {
|
||||||
local url="https://ghproxy.com/https://github.com/whyour/qinglong-static.git"
|
local url="https://ghproxy.com/https://github.com/whyour/qinglong-static.git"
|
||||||
if [ -d ${ql_static_repo}/.git ]; then
|
if [ -d ${ql_static_repo}/.git ]; then
|
||||||
reset_romote_url ${ql_static_repo} ${url}
|
reset_romote_url ${ql_static_repo} ${url}
|
||||||
git_pull_scripts ${ql_static_repo}
|
git fetch
|
||||||
|
git reset --hard origin/master >/dev/null 2>&1
|
||||||
else
|
else
|
||||||
git_clone_scripts ${url} ${ql_static_repo}
|
git_clone_scripts ${url} ${ql_static_repo}
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user