fixed system PHP detection

This commit is contained in:
KnownUnown 2016-10-30 12:07:01 -05:00
parent dc07fc42b4
commit daed82612c
No known key found for this signature in database
GPG Key ID: D986D0B7528ABFF1

View File

@ -25,7 +25,7 @@ if [ "$PHP_BINARY" == "" ]; then
if [ -f ./bin/php7/bin/php ]; then
export PHPRC=""
PHP_BINARY="./bin/php7/bin/php"
elif [ type php 2>/dev/null ]; then
elif [[ ! -z $(type php) ]]; then
PHP_BINARY=$(type -p php)
else
echo "Couldn't find a working PHP 7 binary, please use the installer."