Skip to content

Commit

Permalink
fix #7 : add 'pre' as version fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-draeger committed Jan 27, 2023
1 parent e10d29c commit e58ed8c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,18 @@ main() {
fi
fi
pre="-beta.$preversion";;
"pre")
if [[ -z "$preversion" ]];
then
preversion=0
else
if [[ "$pre" != "-pre" ]];
then
preversion=1
else ((++preversion))
fi
fi
pre="-pre.$preversion";;
"rc")
if [[ -z "$preversion" ]];
then
Expand Down

0 comments on commit e58ed8c

Please sign in to comment.