Improved scripts

This commit is contained in:
Shoghi Cervantes 2013-09-04 13:29:27 +02:00
parent 2b24dab57b
commit 160aa3a199
2 changed files with 6 additions and 5 deletions

View File

@ -7,6 +7,7 @@ FOR /F "tokens=*" %%i in ('php -r "echo 1;"') do SET PHPOUTPUT=%%i
if not "%PHPOUTPUT%"=="1" ( if not "%PHPOUTPUT%"=="1" (
echo [ERROR] Couldn't find PHP binary in PATH. echo [ERROR] Couldn't find PHP binary in PATH.
echo [INFO] Please use the Windows installer from the homepage echo [INFO] Please use the Windows installer from the homepage
pause
) else ( ) else (
if exist php.cmd ( if exist php.cmd (
if exist bin\ansicon.exe ( if exist bin\ansicon.exe (
@ -21,5 +22,8 @@ echo [INFO] Please use the Windows installer from the homepage
php -d enable_dl=On PocketMine-MP.php %* php -d enable_dl=On PocketMine-MP.php %*
) )
) )
)
if errorlevel 1 (
pause pause
)
)

View File

@ -8,9 +8,6 @@ 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 $@
read -p "Press [Enter] to continue..."
exit 0
fi fi
php -d enable_dl=On PocketMine-MP.php $@ php -d enable_dl=On PocketMine-MP.php $@
read -p "Press [Enter] to continue..."
exit 0 exit 0