Update installer.sh

This commit is contained in:
Shoghi Cervantes 2014-04-20 19:16:51 +02:00
parent 59392ac4e9
commit 46464eb504

View File

@ -70,7 +70,7 @@ rm -f start.bat
echo "[2/3] Downloading PocketMine-MP $PMMP_VERSION..." echo "[2/3] Downloading PocketMine-MP $PMMP_VERSION..."
set +e set +e
download_file "https://github.com/PocketMine/PocketMine-MP/releases/download/$PMMP_VERSION/PocketMine-MP.phar" > PocketMine-MP.phar download_file "https://github.com/PocketMine/PocketMine-MP/releases/download/$PMMP_VERSION/PocketMine-MP.phar" > PocketMine-MP.phar
if ! [ -s "PocketMine-MP.phar" ]; then if ! [ -s "PocketMine-MP.phar" ] || [ "$(cat PocketMine-MP.phar)" == "" ]; then
rm "PocketMine-MP.phar" > /dev/null rm "PocketMine-MP.phar" > /dev/null
download_file "https://github.com/PocketMine/PocketMine-MP/archive/$PMMP_VERSION.tar.gz" | tar -zx > /dev/null download_file "https://github.com/PocketMine/PocketMine-MP/archive/$PMMP_VERSION.tar.gz" | tar -zx > /dev/null
COMPILE_SCRIPT="./src/build/compile.sh" COMPILE_SCRIPT="./src/build/compile.sh"