From 30a605dae3247881fdbe8119e7c2f067515c5b43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Wed, 28 Apr 2021 15:43:12 +0200 Subject: [PATCH] SSP: Since 1.4.0 version is available in index.php --- github/check.self-service-password.update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/check.self-service-password.update b/github/check.self-service-password.update index c78ca11..1dd6c00 100755 --- a/github/check.self-service-password.update +++ b/github/check.self-service-password.update @@ -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