From c455c84d1587f1413e36039b12d680ac331ff2dc Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Sun, 4 May 2014 17:59:30 +0200 Subject: [PATCH] Update installer.sh --- src/build/installer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build/installer.sh b/src/build/installer.sh index 8b452e9d1..74e7e5cd5 100644 --- a/src/build/installer.sh +++ b/src/build/installer.sh @@ -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)" == '' ]; 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"