Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
medunes committed Dec 29, 2023
1 parent 91a2d97 commit d544e6d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d544e6d

Please sign in to comment.