Browse Source

修改build脚本

dev-restore_mount
chenzhihang 1 year ago
parent
commit
a1c9ef7c3c
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      k8s/build.sh

+ 1
- 0
k8s/build.sh View File

@@ -43,6 +43,7 @@ cd ${baseDir}


# 拉取指定分支的最新代码 # 拉取指定分支的最新代码
echo "Checking out and pulling branch $branch..." echo "Checking out and pulling branch $branch..."
git stash
git checkout $branch git checkout $branch
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "切换到分支 $branch 失败,请检查分支名称是否正确!" echo "切换到分支 $branch 失败,请检查分支名称是否正确!"


Loading…
Cancel
Save