master
pan 4 years ago
parent 5a2cefc151
commit 6e3ac016a5
  1. 6
      shell/updateRisk

@ -15,20 +15,18 @@ function run(){
then
git clone git@gogs.kirito.cool:panqihua/$1.git
isUpdate=1
echo "创建仓库代码"
else
isUpdate=0
echo "更新仓库代码"
fi
cd $1 && git reset --hard && git pull && yarn && chmod +x run.sh && killNode
if [ $isUpdate -eq 0 ]
then
echo "更新仓库代码"
echo "更新$1仓库代码"
url="http://127.0.0.1:3000/finsh?name=$1"
echo "成功回调地址:$url"
curl $url
else
echo "创建仓库代码"
echo "克隆$1仓库代码"
fi
}

Loading…
Cancel
Save