Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbeentjes authored and christian-draeger committed Feb 10, 2020
1 parent 9715b68 commit 471880d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,27 @@ main() {
"bug")
((++patch)); pre="";;
"alpha")
if [[ ! -z "$preversion" ]]; then
preversion=0
fi
((++preversion))
if [[ "$pre" != "-alpha" ]]; then
preversion=1
fi
pre="-alpha$preversion";;
"beta")
if [[ ! -z "$preversion" ]]; then
preversion=0
fi
((++preversion))
if [[ "$pre" != "-beta" ]]; then
preversion=1
fi
pre="-beta$preversion";;
"rc")
if [[ ! -z "$preversion" ]]; then
preversion=0
fi
((++preversion))
if [[ "$pre" != "-rc" ]]; then
preversion=1
Expand Down

0 comments on commit 471880d

Please sign in to comment.