From 920d8fc79515380cb6f6b6da5fdbd23594663f38 Mon Sep 17 00:00:00 2001 From: pvincent Date: Thu, 13 May 2021 20:44:10 +0400 Subject: [PATCH] no dev, no rc --- tools/wget_semver | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }