Remove "v" prefix from current version

This commit is contained in:
Jeremy Gardais 2022-05-06 09:29:07 +02:00
parent e2096daf99
commit 92f31a62ca
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 1 additions and 2 deletions

View File

@ -42,8 +42,7 @@ DEBUG=1
script_wd=$(dirname "${0}") script_wd=$(dirname "${0}")
searx_install_dir="${1}" searx_install_dir="${1}"
temp_searx_current_version=$(cd "${searx_install_dir}" || exit 1 ; grep "\(VERSION_MAJOR\|VERSION_MINOR\|VERSION_BUILD\) =" searx/version.py | cut -d\= -f2 | sed -e 's/^[[:space:]]*//' | paste -sd "." - ; cd - > /dev/null || exit 1) searx_current_version=$(cd "${searx_install_dir}" || exit 1 ; grep "\(VERSION_MAJOR\|VERSION_MINOR\|VERSION_BUILD\) =" searx/version.py | cut -d\= -f2 | sed -e 's/^[[:space:]]*//' | paste -sd "." - ; cd - > /dev/null || exit 1)
searx_current_version="v${temp_searx_current_version}"
searx_repo_url="https://github.com/searx/searx" searx_repo_url="https://github.com/searx/searx"
searx_new_version=$("${script_wd}"/releasetags "${searx_repo_url}" | head -n1) searx_new_version=$("${script_wd}"/releasetags "${searx_repo_url}" | head -n1)