From 8ea0830cda2b529cdf99cd47604a9b3e888894c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Sat, 5 Oct 2019 08:56:56 +0200 Subject: [PATCH] Use Configuration.php file to get current version Cause index.php don't display minor version. --- github/check.privatebin.update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/check.privatebin.update b/github/check.privatebin.update index b50dd08..58ba5dc 100755 --- a/github/check.privatebin.update +++ b/github/check.privatebin.update @@ -42,7 +42,7 @@ DEBUG=0 script_wd=$(dirname "${0}") pb_install_dir="${1}" -pb_current_version=$(cd "${pb_install_dir}" || exit 1 ; awk '/@version/ { print $3 }' index.php || exit 1 ; cd - > /dev/null || exit 1) +pb_current_version=$(cd "${pb_install_dir}" || exit 1 ; awk '/@version/ { print $3 }' lib/Configuration.php || exit 1 ; cd - > /dev/null || exit 1) pb_repo_url="https://github.com/PrivateBin/PrivateBin" pb_new_version=$("${script_wd}"/releasetags "${pb_repo_url}" | head -n1 | sed 's/v//')