Avoid dev and release candidate version

This commit is contained in:
Jeremy Gardais 2019-10-15 14:25:30 +02:00
parent 23eba7fd51
commit 91f963774d
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ else
gitea_current_version=$("${gitea_bin_path}" -v | cut -d' ' -f3)
gitea_repo_url="https://github.com/go-gitea/gitea"
gitea_new_version=$("${script_wd}"/releasetags "${gitea_repo_url}" | head -n1 | sed 's/v//')
gitea_new_version=$("${script_wd}"/releasetags "${gitea_repo_url}" | grep -vE -- '(dev|rc)' | head -n1 | sed 's/v//')
gitea_new_version_file="/tmp/.github.gitea.upgrade"
# }}}