From 9cc3862d0ef70c8f5dd53c6a329e60fd5b9fd92e Mon Sep 17 00:00:00 2001 From: pan <1029559041@qq.com> Date: Sat, 10 Oct 2020 03:42:47 +0800 Subject: [PATCH] init --- shell/updateRisk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shell/updateRisk b/shell/updateRisk index 3474555..7ca8ce9 100644 --- a/shell/updateRisk +++ b/shell/updateRisk @@ -11,14 +11,15 @@ export apiServer=https://risk.kirito.cool function run(){ + isUpdate=false if [ ! -e $1 ] then git clone git@gogs.kirito.cool:panqihua/$1.git - isUpdate=false else isUpdate=true fi cd $1 && git reset --hard && git pull && yarn && chmod +x run.sh && killNode + echo $isUpdate if [ $isUpdate ] then url="http://127.0.0.1:3000/finsh?name=$1"