From 391be1987ee761444782bedd04a2c0895d2a6678 Mon Sep 17 00:00:00 2001 From: whyour Date: Wed, 12 May 2021 12:23:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dql=20update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/update.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/shell/update.sh b/shell/update.sh index 8879a4ef..157bf1a8 100755 --- a/shell/update.sh +++ b/shell/update.sh @@ -245,12 +245,8 @@ update_qinglong() { fi local url="https://gitee.com/whyour/qinglong-static.git" - if [ -d ${ql_static_repo}/.git ]; then - reset_romote_url ${ql_static_repo} ${url} - git_pull_scripts ${ql_static_repo} - else - git_clone_scripts ${url} ${ql_static_repo} - fi + rm -rf ${ql_static_repo} + git_clone_scripts ${url} ${ql_static_repo} if [[ $exit_status -eq 0 ]]; then echo -e "\n更新$ql_static_repo成功...\n" cp -rf $ql_static_repo/* $dir_root