From 024775011fad9a8793241864ff23d38534b7f548 Mon Sep 17 00:00:00 2001 From: whyour Date: Sun, 16 May 2021 21:03:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dql=E4=BE=9D=E8=B5=96=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E5=AE=89=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/update.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/shell/update.sh b/shell/update.sh index cec93cc2..01d4172d 100755 --- a/shell/update.sh +++ b/shell/update.sh @@ -245,17 +245,15 @@ usage() { ## 更新qinglong update_qinglong() { echo -e "--------------------------------------------------------------\n" - [ -f $dir_root/package.json ] && ql_depend_old=$(cat $dir_root/package.json) git_pull_scripts $dir_root if [[ $exit_status -eq 0 ]]; then echo -e "\n更新$dir_root成功...\n" + npm_install_2 $dir_root + cp -f $file_config_sample $dir_config/config.sample.sh detect_config_version update_depend - - [ -f $dir_root/package.json ] && ql_depend_new=$(cat $dir_root/package.json) - [[ "$ql_depend_old" != "$ql_depend_new" ]] && npm_install_2 $dir_root else echo -e "\n更新$dir_root失败,请检查原因...\n" fi