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