Skip to content

Commit

Permalink
Allow for -rc release in util/version.sh.
Browse files Browse the repository at this point in the history
  • Loading branch information
radarsat1 committed May 8, 2019
1 parent 0a15388 commit 96d8eda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ else
BRANCH="$(git branch | grep \* | sed 's,[() *],,g')"
fi

LASTTAG="$(git tag -l | sort -rn | perl -nle 'print $_ if m/^\d+\.\d+(\.\d+)*$/' | head -n 1)"
LASTTAG="$(git tag -l | sort -rn | perl -nle 'print $_ if m/^\d+\.\d+(\.\d+)*(-rc)?$/' | head -n 1)"
if [ "$LASTTAG"x = x ]; then
LASTTAG="0"
INCREMENT="-0"
Expand Down

0 comments on commit 96d8eda

Please sign in to comment.