Fixed PHPRC env. variable being set

This commit is contained in:
Shoghi Cervantes
2015-01-13 17:25:52 +01:00
parent f6c4a726b3
commit e8e7938490
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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)