master
pan 4 years ago
parent b5134487e7
commit daccdc8660
  1. 6
      shell/updateRisk

@ -14,14 +14,14 @@ function run(){
if [ ! -e $1 ]
then
git clone git@gogs.kirito.cool:panqihua/$1.git
isUpdate=false
isUpdate=1
echo "创建仓库代码"
else
isUpdate=true
isUpdate=0
echo "更新仓库代码"
fi
cd $1 && git reset --hard && git pull && yarn && chmod +x run.sh && killNode
if [ $isUpdate ]
if [ $isUpdate -eq 0 ]
then
echo "更新仓库代码"
url="http://127.0.0.1:3000/finsh?name=$1"

Loading…
Cancel
Save