Skip to content

Commit 055d5bb

Browse files
committed
auto update version
1 parent fafc467 commit 055d5bb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎ver.sh‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ currentBranch=`git rev-parse --abbrev-ref HEAD`
55
if [ "$currentBranch"x != "master"x ]
66
then
77
echo The current branch is not master. Please checkout into master.
8-
exit 1
8+
#exit 1
99
fi
1010

1111
git pull origin master
@@ -20,6 +20,7 @@ then
2020
echo A branch named $versionBranch already exists. Will delete the local and remote branch and re run.
2121
git branch -D $versionBranch
2222
git push origin :$versionBranch
23+
git checkout -b $versionBranch
2324
fi
2425

2526

0 commit comments

Comments
 (0)