mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 07:09:56 +00:00
Update installer.sh
This commit is contained in:
parent
15c5dacab3
commit
c455c84d15
@ -70,7 +70,7 @@ rm -f start.bat
|
||||
echo "[2/3] Downloading PocketMine-MP $PMMP_VERSION..."
|
||||
set +e
|
||||
download_file "https://github.com/PocketMine/PocketMine-MP/releases/download/$PMMP_VERSION/PocketMine-MP.phar" > PocketMine-MP.phar
|
||||
if ! [ -s "PocketMine-MP.phar" ] || [ "$(cat PocketMine-MP.phar)" == "" ]; then
|
||||
if ! [ -s "PocketMine-MP.phar" ] || [ "$(head -n 1 PocketMine-MP.phar)" == '<!DOCTYPE html>' ]; then
|
||||
rm "PocketMine-MP.phar" > /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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user