From 0bb33811220185d90790a03efd3d69aa218f0d44 Mon Sep 17 00:00:00 2001 From: whyour Date: Tue, 22 Nov 2022 16:51:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8B=89=E5=8E=BB=E4=BB=93?= =?UTF-8?q?=E5=BA=93=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/update.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shell/update.sh b/shell/update.sh index 857cac02..0797ae3a 100755 --- a/shell/update.sh +++ b/shell/update.sh @@ -159,6 +159,7 @@ update_repo() { reset_romote_url ${repo_path} "${formatUrl}" "${branch}" git_pull_scripts ${repo_path} "${branch}" "${proxy}" else + rm -rf ${repo_path} &>/dev/null git_clone_scripts "${formatUrl}" ${repo_path} "${branch}" "${proxy}" fi if [[ $exit_status -eq 0 ]]; then @@ -287,6 +288,7 @@ update_qinglong_static() { reset_romote_url ${ql_static_repo} ${url} ${primary_branch} git_pull_scripts ${ql_static_repo} ${primary_branch} else + rm -rf ${ql_static_repo} &>/dev/null git_clone_scripts ${url} ${ql_static_repo} ${primary_branch} fi if [[ $exit_status -eq 0 ]]; then