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 }