From 0cf64fd62f7239d855e222236a3e0b64ad625830 Mon Sep 17 00:00:00 2001 From: pan <1029559041@qq.com> Date: Sat, 10 Oct 2020 03:55:42 +0800 Subject: [PATCH] init --- shell/updateRisk | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/shell/updateRisk b/shell/updateRisk index 5a135b1..e2c8806 100644 --- a/shell/updateRisk +++ b/shell/updateRisk @@ -11,21 +11,14 @@ export apiServer=https://risk.kirito.cool function run(){ - isUpdate=false if [ ! -e $1 ] then git clone git@gogs.kirito.cool:panqihua/$1.git - 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" - echo "成功回调地址:$url" - curl $url - fi + url="http://127.0.0.1:3000/finsh?name=$1" + echo "成功回调地址:$url" + curl $url } #检查是否正在部署