From 85ea900d1837d7d9f19370bb7df481e0f25220a9 Mon Sep 17 00:00:00 2001 From: Christoph Date: Thu, 9 Nov 2017 04:34:40 +0100 Subject: [PATCH] Fix minor error in ouput of script 'upgrade_roundcube.sh'. --- upgrade_roundcube.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/upgrade_roundcube.sh b/upgrade_roundcube.sh index 794bfe2..fa4e149 100755 --- a/upgrade_roundcube.sh +++ b/upgrade_roundcube.sh @@ -356,10 +356,11 @@ fi # - Determin PHP of all installed versions # - -echononl " Get major version of all installed PHP versions" if $PHP_DEBIAN_INSTALLATION ; then + echononl " Get installed PHP versions" php_major_version="$(php --version | head -1 | cut -d' ' -f2 | cut -d '-' -f1 | cut -d'.' -f1,2)" else + echononl " Get major version of all installed PHP versions" php_major_versions="$(find /usr/local/ -maxdepth 1 -mindepth 1 -type l -name "php-*" -print | cut -d "-" -f2 | sort)" if [[ -z "$php_major_versions" ]]; then echo_failed