|
|
|
@ -13,12 +13,12 @@ echo "url=($serverUrl)" |
|
|
|
|
|
|
|
deploy() { |
|
|
|
# 更新代码 |
|
|
|
echo -e "$echoPrefix cd $codePath $echoSuffix" |
|
|
|
cd $codePath |
|
|
|
echo -e "$echoPrefix git checkout . $echoSuffix" |
|
|
|
git checkout . |
|
|
|
echo -e "$echoPrefix git pull $echoSuffix" |
|
|
|
git pull |
|
|
|
# echo -e "$echoPrefix cd $codePath $echoSuffix" |
|
|
|
# cd $codePath |
|
|
|
# echo -e "$echoPrefix git checkout . $echoSuffix" |
|
|
|
# git checkout . |
|
|
|
# echo -e "$echoPrefix git pull $echoSuffix" |
|
|
|
# git pull |
|
|
|
|
|
|
|
# 读取版本号 |
|
|
|
major='1' |
|
|
|
|