Remove "v" prefix from current version
This commit is contained in:
parent
e2096daf99
commit
92f31a62ca
|
@ -42,8 +42,7 @@ DEBUG=1
|
|||
script_wd=$(dirname "${0}")
|
||||
|
||||
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="v${temp_searx_current_version}"
|
||||
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_repo_url="https://github.com/searx/searx"
|
||||
searx_new_version=$("${script_wd}"/releasetags "${searx_repo_url}" | head -n1)
|
||||
|
|
Loading…
Reference in New Issue