From 57aa8440a9bcc9d01677ae6499ebd87da1e07ef4 Mon Sep 17 00:00:00 2001 From: whyour Date: Sun, 16 May 2021 21:02:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dql=E4=BE=9D=E8=B5=96=E5=AE=89?= =?UTF-8?q?=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/update.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shell/update.sh b/shell/update.sh index e51ccf6f..cec93cc2 100755 --- a/shell/update.sh +++ b/shell/update.sh @@ -245,12 +245,17 @@ 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" 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