From d92a46d09cd1c7921ac63e13f2bab28e28774592 Mon Sep 17 00:00:00 2001 From: whyour Date: Mon, 7 Mar 2022 22:27:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9B=B4=E6=96=B0=E9=9D=92?= =?UTF-8?q?=E9=BE=99=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/check.sh | 1 + shell/update.sh | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/shell/check.sh b/shell/check.sh index be1cbc7f..9dbad018 100644 --- a/shell/check.sh +++ b/shell/check.sh @@ -98,6 +98,7 @@ check_pm2() { main() { echo -e "=====> 开始检测" + pnpm install -g pm2 copy_dep check_ql check_nginx diff --git a/shell/update.sh b/shell/update.sh index cc929b86..4fb6b387 100755 --- a/shell/update.sh +++ b/shell/update.sh @@ -243,8 +243,6 @@ usage() { update_qinglong() { patch_version - pnpm install -g pm2 &>/dev/null - local no_restart="$1" local all_branch=$(git branch -a) local primary_branch="master" @@ -279,7 +277,7 @@ update_qinglong() { local static_version=$(cat /ql/src/version.ts | perl -pe "s|.*\'(.*)\';\.*|\1|" | head -1) echo -e "\n当前版本 $static_version...\n" - rm -rf $dir_static + rm -rf $dir_static/* cp -rf $ql_static_repo/* $dir_static if [[ $no_restart != "no-restart" ]]; then nginx -s reload 2>/dev/null || nginx -c /etc/nginx/nginx.conf