diff --git a/tools/wget_semver b/tools/wget_semver index 41d1a31..9d2b1e5 100755 --- a/tools/wget_semver +++ b/tools/wget_semver @@ -17,7 +17,7 @@ function usage { function get_github { release=$( git ls-remote --tags --sort="v:refname" \ git://github.com/$REPO_NAME \ - | tail -n1 | cut -f2 | cut -d '/' -f3 ) + | grep -v dev | grep -v rc | tail -n1 | cut -f2 | cut -d '/' -f3 ) release=${release%^\{\}} # remove extra characters ^{} from github echo $release }