From daccdc86603436483df685130f3379a44de26998 Mon Sep 17 00:00:00 2001 From: pan <1029559041@qq.com> Date: Sat, 10 Oct 2020 04:29:49 +0800 Subject: [PATCH] init --- shell/updateRisk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shell/updateRisk b/shell/updateRisk index eb13954..529eb5e 100644 --- a/shell/updateRisk +++ b/shell/updateRisk @@ -14,14 +14,14 @@ function run(){ if [ ! -e $1 ] then git clone git@gogs.kirito.cool:panqihua/$1.git - isUpdate=false + isUpdate=1 echo "创建仓库代码" else - isUpdate=true + isUpdate=0 echo "更新仓库代码" fi cd $1 && git reset --hard && git pull && yarn && chmod +x run.sh && killNode - if [ $isUpdate ] + if [ $isUpdate -eq 0 ] then echo "更新仓库代码" url="http://127.0.0.1:3000/finsh?name=$1"