Sick: Exclude release with a "-"

This commit is contained in:
Jeremy Gardais 2021-08-18 07:38:25 +02:00
parent d0fcbe5318
commit 63aad2f3b7
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ define_vars() { # {{{
## when curl 7.74.x will be available on Debian Stable ## when curl 7.74.x will be available on Debian Stable
sickchill_current_version=$(curl --silent "${sickchill_url:=/dev/null}" | \grep --only-matching --perl-regexp '(?<=https://github.com/SickChill/SickChill/releases/tag/v)[[:alnum:].]*') sickchill_current_version=$(curl --silent "${sickchill_url:=/dev/null}" | \grep --only-matching --perl-regexp '(?<=https://github.com/SickChill/SickChill/releases/tag/v)[[:alnum:].]*')
sickchill_new_version=$("${script_wd}"/releasetags "${sickchill_repo_url}" | grep --invert-match --extended-regexp -- '(dev|rc)' | head --lines=1 | sed --silent 's/v\([0-9]*\.[0-9]*\.[0-9]*\).*/\1/p') sickchill_new_version=$("${script_wd}"/releasetags "${sickchill_repo_url}" | grep --invert-match --extended-regexp -- '(dev|rc|-)' | head --lines=1 | sed 's/v\([0-9]*\.[0-9]*\.[0-9]*\).*/\1/')
} }
# }}} # }}}