Add snippet 'get-path-of-php-command.sh' and change concerning code..
This commit is contained in:
7
snippets/get-path-of-php-command.sh
Normal file
7
snippets/get-path-of-php-command.sh
Normal file
@ -0,0 +1,7 @@
|
||||
if [[ -x "/usr/local/php-${PHP_VERSION}/bin/php" ]] ; then
|
||||
PHP_BIN="/usr/local/php-${PHP_VERSION}/bin/php"
|
||||
elif [[ -x "$(realpath /usr/local/php/bin/php)" ]]; then
|
||||
PHP_BIN="/usr/local/php/bin/php"
|
||||
else
|
||||
PHP_BIN="$(which php)"
|
||||
fi
|
Reference in New Issue
Block a user