From 53ee25697ccc4ad990328ef9c2f85436be1f8cd8 Mon Sep 17 00:00:00 2001 From: QL Date: Wed, 25 Aug 2021 05:59:25 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=89ql=20extra.sh=20=F0=9F=94=A8fix=20b?= =?UTF-8?q?ug=202021-08-25=2005:59:25?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Tasks/qlrepo/extra.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Tasks/qlrepo/extra.sh b/Tasks/qlrepo/extra.sh index d88ddc5..d4e33af 100644 --- a/Tasks/qlrepo/extra.sh +++ b/Tasks/qlrepo/extra.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -## Mod: Build20210816V1 +## Mod: Build20210825V1 ## 添加你需要重启自动执行的任意命令,比如 ql repo ## 安装node依赖使用 pnpm install -g xxx xxx(Build 20210728-002 及以上版本的 code.sh,可忽略) ## 安装python依赖使用 pip3 install xxx(Build 20210728-002 及以上版本的 code.sh,可忽略) @@ -126,10 +126,12 @@ done # 🍪Ninja update_Ninja_normal(){ - cd /ql/ninja/backend && git pull -f && pnpm install && pm2 start && cp sendNotify.js /ql/scripts/sendNotify.js + cd /ql/ninja/backend && git checkout . && git pull + pnpm install && pm2 start + cp sendNotify.js /ql/scripts/sendNotify.js } -if [ "${Ninja}" = "up" ]; then +if [ "$Ninja" = "up" ]; then update_Ninja_normal & fi @@ -201,6 +203,6 @@ install_dependencies_all(){ done } -if [ "${dependencies}" = "yes" ]; then +if [ "$dependencies" = "yes" ]; then install_dependencies_all & fi \ No newline at end of file