Ignore empty lines

Potential removed tags,…
This commit is contained in:
Jeremy Gardais 2022-01-20 07:53:49 +01:00
parent 54cf9ba91e
commit 12ba56fd0d
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ DEBUG=1
script_wd=$(dirname "${0}")
gitea_repo_url="https://github.com/go-gitea/gitea"
gitea_new_version=$("${script_wd}"/releasetags "${gitea_repo_url}" | grep --invert-match --extended-regexp -- '(dev|rc)' | head --lines=1 | sed 's/v//')
gitea_new_version=$("${script_wd}"/releasetags "${gitea_repo_url}" | grep --invert-match --extended-regexp -- '(dev|rc|^$)' | head --lines=1 | sed 's/v//')
gitea_new_version_file="/tmp/.github.gitea.upgrade"