SSP: Since 1.4.0 version is available in index.php
This commit is contained in:
parent
6c23714fee
commit
30a605dae3
|
@ -50,7 +50,7 @@ ssp_repo_url="https://github.com/ltb-project/self-service-password"
|
|||
if [ $# -eq 1 ] ## If source directory should be used
|
||||
then
|
||||
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)
|
||||
else ## If .deb file should be used
|
||||
|
|
Loading…
Reference in New Issue