remove release candidate when deciding the next version

pull/57/head
John Shahid 2013-11-14 17:22:15 -05:00
parent 316bf838cb
commit 00aee04508
1 changed files with 2 additions and 2 deletions

View File

@ -11,8 +11,8 @@ fi
git fetch --tags
if [ $# -ne 1 ]; then
current_version=`git tag | sort -V | tail -n1`
if [ $# -lt 1 ]; then
current_version=`git tag | grep -v rc | sort -V | tail -n1`
current_version=${current_version#v}
version=`echo $current_version | awk 'BEGIN {FS="."}; {print $1 "." $2 "." ++$3}'`
else