From d544e6d0d27a0d04a56b3b4e97ced7b9e09a0f6e Mon Sep 17 00:00:00 2001 From: medunes Date: Fri, 29 Dec 2023 17:19:40 +0100 Subject: [PATCH] fix build --- install.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index ee60ef5..1cac77c 100755 --- a/install.sh +++ b/install.sh @@ -51,14 +51,13 @@ PHP_TYPE=$2 PHP_INI_DIR="/etc/php/${PHP_VERSION}/${PHP_TYPE}" ls -al $PHP_INI_DIR || (echo "can not locate PHP_INI_DIR at $PHP_INI_DIR. Aborting!" && exit 1) -PHP_BIN="php${PHP_VERSION}" -which php${PHP_VERSION} -v || (echo "can not locate $PHP_BIN. Defaulting to 'php'!" && PHP_BIN="php") - php -i | grep extension_dir - PHP_EXTENSION_DIR=$($PHP_BIN -i | grep extension_dir | cut -d " " -f 5) ls -al $PHP_EXTENSION_DIR || (echo "can not locate PHP_EXTENSION_DIR at $PHP_EXTENSION_DIR. Aborting!" && exit 1) +PHP_BIN="php${PHP_VERSION}" +which php${PHP_VERSION} -v || (echo "can not locate $PHP_BIN. Defaulting to 'php'!" && PHP_BIN="php") + ######## BUILD ARGUMENTS########### #>>>> PHP_VERSION #>>>> PHP_TYPE