From da08ff2d0155fbfb8f2a53f8ebde22e25aadf7ef Mon Sep 17 00:00:00 2001 From: Nicolas Sebrecht Date: Sun, 11 Dec 2016 16:58:58 +0100 Subject: [PATCH] release.sh: correctly sort releases to compute latest stable and rc Signed-off-by: Nicolas Sebrecht --- contrib/release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/release.sh b/contrib/release.sh index 5452fb9..dbbc75d 100755 --- a/contrib/release.sh +++ b/contrib/release.sh @@ -289,11 +289,11 @@ function git_release () { function get_last_rc () { - git tag | grep -E '^v([0-9][\.-]){3}rc' | sort -n | tail -n1 + git tag | grep -E '^v([0-9][\.-]){3}rc' | sort -V | tail -n1 } function get_last_stable () { - git tag | grep -E '^v([0-9][\.])+' | grep -v '\-rc' | sort -n | tail -n1 + git tag | grep -E '^v([0-9][\.])+' | grep -v '\-rc' | sort -V | tail -n1 } function update_website_releases_info() {