|
@@ -179,7 +179,7 @@ deployPush() {
|
|
|
echo ""
|
|
|
}
|
|
|
|
|
|
-isChange="1" # 仓库是否发生变化,0未:变化;非0:变化
|
|
|
+isChange="1" # 仓库是否发生变化,0:未变化;非0:变化
|
|
|
pullCode() {
|
|
|
# Usage: pullCode "codePath" "gitUrl" "branch" "position"
|
|
|
path=$1 # 代码保存路径
|
|
@@ -210,7 +210,7 @@ pullCode() {
|
|
|
echo -e "$echoPrefix git checkout $branch $echoSuffix"
|
|
|
git checkout $branch
|
|
|
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"
|
|
|
fi
|
|
|
echo ""
|