mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-13 15:05:33 +00:00
start.sh: improve errors when PHP isn't found
This commit is contained in:
parent
d535f02096
commit
cb0af44ccb
5
start.sh
5
start.sh
@ -23,10 +23,11 @@ if [ "$PHP_BINARY" == "" ]; then
|
|||||||
if [ -f ./bin/php7/bin/php ]; then
|
if [ -f ./bin/php7/bin/php ]; then
|
||||||
export PHPRC=""
|
export PHPRC=""
|
||||||
PHP_BINARY="./bin/php7/bin/php"
|
PHP_BINARY="./bin/php7/bin/php"
|
||||||
elif [[ ! -z $(type php) ]]; then
|
elif [[ ! -z $(type php 2> /dev/null) ]]; then
|
||||||
PHP_BINARY=$(type -p php)
|
PHP_BINARY=$(type -p php)
|
||||||
else
|
else
|
||||||
echo "Couldn't find a working PHP binary, please use the installer."
|
echo "Couldn't find a PHP binary in system PATH or $PWD/bin/php7/bin"
|
||||||
|
echo "Please refer to the installation instructions at https://doc.pmmp.io/en/rtfd/installation.html"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user