From 160aa3a1992cbb2977c4bbd18a9a756cb31a1c8b Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Wed, 4 Sep 2013 13:29:27 +0200 Subject: [PATCH] Improved scripts --- start.cmd | 8 ++++++-- start.sh | 3 --- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/start.cmd b/start.cmd index 47ec23901..313500447 100644 --- a/start.cmd +++ b/start.cmd @@ -7,6 +7,7 @@ FOR /F "tokens=*" %%i in ('php -r "echo 1;"') do SET PHPOUTPUT=%%i if not "%PHPOUTPUT%"=="1" ( echo [ERROR] Couldn't find PHP binary in PATH. echo [INFO] Please use the Windows installer from the homepage +pause ) else ( if exist php.cmd ( if exist bin\ansicon.exe ( @@ -20,6 +21,9 @@ echo [INFO] Please use the Windows installer from the homepage ) else ( php -d enable_dl=On PocketMine-MP.php %* ) - ) + ) + + if errorlevel 1 ( + pause + ) ) -pause diff --git a/start.sh b/start.sh index 0f90735d4..7e0903415 100755 --- a/start.sh +++ b/start.sh @@ -8,9 +8,6 @@ rm -r -f ./php5/ fi if [ -f ./bin/php ]; then ./bin/php -d enable_dl=On PocketMine-MP.php $@ -read -p "Press [Enter] to continue..." -exit 0 fi php -d enable_dl=On PocketMine-MP.php $@ -read -p "Press [Enter] to continue..." exit 0 \ No newline at end of file