Skip to content

Commit

Permalink
Merge pull request #1 from mhristof/patch-2
Browse files Browse the repository at this point in the history
Update entrypoint.sh
  • Loading branch information
christian-draeger authored Jan 28, 2020
2 parents 04a325c + e3be773 commit 4be8566
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,25 +41,25 @@ main() {
# increment version number based on given release type
case "$releaseType" in
"major")
((major++)); minor=0; build=0; pre="";;
((++major)); minor=0; build=0; pre="";;
"feature")
((minor++)); build=0; pre="";;
((++minor)); build=0; pre="";;
"bug")
((build++)); pre="";;
((++build)); pre="";;
"alpha")
((preversion++))
((++preversion))
if [[ "$pre" != "-alpha" ]]; then
preversion=1
fi
pre="-alpha$preversion";;
"beta")
((preversion++))
((++preversion))
if [[ "$pre" != "-beta" ]]; then
preversion=1
fi
pre="-beta$preversion";;
"rc")
((preversion++))
((++preversion))
if [[ "$pre" != "-rc" ]]; then
preversion=1
fi
Expand Down

0 comments on commit 4be8566

Please sign in to comment.