mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Fixed PHPRC env. variable being set
This commit is contained in:
@ -1,7 +1,9 @@
|
|||||||
@echo off
|
@echo off
|
||||||
TITLE PocketMine-MP server software for Minecraft: Pocket Edition
|
TITLE PocketMine-MP server software for Minecraft: Pocket Edition
|
||||||
cd /d %~dp0
|
cd /d %~dp0
|
||||||
|
|
||||||
if exist bin\php\php.exe (
|
if exist bin\php\php.exe (
|
||||||
|
set PHPRC=""
|
||||||
set PHP_BINARY=bin\php\php.exe
|
set PHP_BINARY=bin\php\php.exe
|
||||||
) else (
|
) else (
|
||||||
set PHP_BINARY=php
|
set PHP_BINARY=php
|
||||||
|
1
start.sh
1
start.sh
@ -23,6 +23,7 @@ done
|
|||||||
|
|
||||||
if [ "$PHP_BINARY" == "" ]; then
|
if [ "$PHP_BINARY" == "" ]; then
|
||||||
if [ -f ./bin/php5/bin/php ]; then
|
if [ -f ./bin/php5/bin/php ]; then
|
||||||
|
export PHPRC=""
|
||||||
PHP_BINARY="./bin/php5/bin/php"
|
PHP_BINARY="./bin/php5/bin/php"
|
||||||
elif [ type php 2>/dev/null ]; then
|
elif [ type php 2>/dev/null ]; then
|
||||||
PHP_BINARY=$(type -p php)
|
PHP_BINARY=$(type -p php)
|
||||||
|
Reference in New Issue
Block a user