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 09fbb24 commit a80e416
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,12 @@ 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}"
PHP_V="php${PHP_VERSION}"
which php${PHP_VERSION} -v || (echo "can not locate $PHP_BIN. Defaulting to 'php'!" && PHP_BIN="php")

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)

######## BUILD ARGUMENTS###########
#>>>> PHP_VERSION
Expand Down

0 comments on commit a80e416

Please sign in to comment.