From ed2947f0e6e553d9129f9310ca7bd2f6ed5dc47a Mon Sep 17 00:00:00 2001 From: pan <1029559041@qq.com> Date: Sat, 10 Oct 2020 04:20:20 +0800 Subject: [PATCH] init --- shell/updateRisk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/shell/updateRisk b/shell/updateRisk index 5ff4f12..eb13954 100644 --- a/shell/updateRisk +++ b/shell/updateRisk @@ -15,18 +15,20 @@ function run(){ then git clone git@gogs.kirito.cool:panqihua/$1.git isUpdate=false + echo "创建仓库代码" else isUpdate=true + echo "更新仓库代码" fi cd $1 && git reset --hard && git pull && yarn && chmod +x run.sh && killNode if [ $isUpdate ] then - echo "克隆仓库代码" + echo "更新仓库代码" url="http://127.0.0.1:3000/finsh?name=$1" echo "成功回调地址:$url" curl $url else - echo "更新仓库代码" + echo "创建仓库代码" fi }