From daed82612ca524d9df40de9eb8780d43fa5668b8 Mon Sep 17 00:00:00 2001 From: KnownUnown Date: Sun, 30 Oct 2016 12:07:01 -0500 Subject: [PATCH] fixed system PHP detection --- start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start.sh b/start.sh index d4dcd80808..518bdda849 100755 --- a/start.sh +++ b/start.sh @@ -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."