SSP: Since 1.4.0 version is available in index.php

This commit is contained in:
Jeremy Gardais 2021-04-28 15:43:12 +02:00
parent 6c23714fee
commit 30a605dae3
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ ssp_repo_url="https://github.com/ltb-project/self-service-password"
if [ $# -eq 1 ] ## If source directory should be used if [ $# -eq 1 ] ## If source directory should be used
then then
ssp_install_dir="${1}" ssp_install_dir="${1}"
ssp_current_version=$(cd "${ssp_install_dir}" || exit 1 ; git status | head -n1 | cut -d" " -f4 ; cd - > /dev/null || exit 1) ssp_current_version=$(find "${ssp_install_dir}" -iname index.php -exec grep -- "^\$version" {} \; | cut -d'"' -f2)
ssp_new_version=$("${script_wd}"/releasetags "${ssp_repo_url}" | head -n1) ssp_new_version=$("${script_wd}"/releasetags "${ssp_repo_url}" | head -n1)
else ## If .deb file should be used else ## If .deb file should be used