Warn about not using the bin/ PHP binary

This commit is contained in:
Shoghi Cervantes 2013-11-24 20:09:04 +01:00
parent 2b920033ff
commit a8055eb59a

View File

@ -2,12 +2,13 @@
DIR="$(cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd)" DIR="$(cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
cd "$DIR" cd "$DIR"
if [ -f ./php5/bin/php ]; then if [ -f ./php5/bin/php ]; then
mkdir -m 0777 bin/ mkdir -m 0777 bin/
mv ./php5/bin/php ./bin/php mv ./php5/bin/php ./bin/php
rm -r -f ./php5/ rm -r -f ./php5/
fi fi
if [ -f ./bin/php ]; then if [ -f ./bin/php ]; then
./bin/php -d enable_dl=On PocketMine-MP.php $@ ./bin/php -d enable_dl=On PocketMine-MP.php $@
else else
php -d enable_dl=On PocketMine-MP.php $@ echo "[WARNING] You are not using the standalone PocketMine-MP PHP binary."
php -d enable_dl=On PocketMine-MP.php $@
fi fi