Browse Source

大参林 服务构建

master
lizw 4 years ago
parent
commit
fd5e5381c6
  1. 4
      dsl/build.sh

4
dsl/build.sh

@ -179,7 +179,7 @@ deployPush() {
echo "" echo ""
} }
isChange="1" # 仓库是否发生变化,0:变化;非0:变化 isChange="1" # 仓库是否发生变化,0:变化;非0:变化
pullCode() { pullCode() {
# Usage: pullCode "codePath" "gitUrl" "branch" "position" # Usage: pullCode "codePath" "gitUrl" "branch" "position"
path=$1 # 代码保存路径 path=$1 # 代码保存路径
@ -210,7 +210,7 @@ pullCode() {
echo -e "$echoPrefix git checkout $branch $echoSuffix" echo -e "$echoPrefix git checkout $branch $echoSuffix"
git checkout $branch git checkout $branch
echo -e "$echoPrefix git pull $echoSuffix" echo -e "$echoPrefix git pull $echoSuffix"
if [ "`git pull`" == "Already up-to-date." ] && [ $isChange == 1 ]; then if [ "`git pull`" == "Already up-to-date." ] && [ $isChange == "1" ]; then
isChange="0" isChange="0"
fi fi
echo "" echo ""

Loading…
Cancel
Save