Skip to content
This repository was archived by the owner on Jan 9, 2018. It is now read-only.

Commit 2c32974

Browse files
committed
Updated installer
1 parent ae61ed7 commit 2c32974

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

installer.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22

33
CHANNEL="stable"
4+
BRANCH="php7"
45
NAME="PocketMine-MP"
56

67
LINUX_32_BUILD="PHP_5.7.0RC2_x86_Linux"
@@ -198,14 +199,14 @@ if ! [ -s "$NAME.phar" ] || [ "$(head -n 1 $NAME.phar)" == '<!DOCTYPE html>' ];
198199
exit 1
199200
else
200201
if [ "$CHANNEL" == "soft" ]; then
201-
download_file "https://raw.githubusercontent.com/PocketMine/PocketMine-Soft/master/resources/start.sh" > start.sh
202+
download_file "https://raw.githubusercontent.com/PocketMine/PocketMine-Soft/${BRANCH}/resources/start.sh" > start.sh
202203
else
203-
download_file "https://raw.githubusercontent.com/PocketMine/PocketMine-MP/master/start.sh" > start.sh
204+
download_file "https://raw.githubusercontent.com/PocketMine/PocketMine-MP/${BRANCH}/start.sh" > start.sh
204205
fi
205-
download_file "https://raw.githubusercontent.com/PocketMine/PocketMine-MP/master/LICENSE" > LICENSE
206-
download_file "https://raw.githubusercontent.com/PocketMine/PocketMine-MP/master/README.md" > README.md
207-
download_file "https://raw.githubusercontent.com/PocketMine/PocketMine-MP/master/CONTRIBUTING.md" > CONTRIBUTING.md
208-
download_file "https://raw.githubusercontent.com/PocketMine/php-build-scripts/master/compile.sh" > compile.sh
206+
download_file "https://raw.githubusercontent.com/PocketMine/PocketMine-MP/${BRANCH}/LICENSE" > LICENSE
207+
download_file "https://raw.githubusercontent.com/PocketMine/PocketMine-MP/${BRANCH}/README.md" > README.md
208+
download_file "https://raw.githubusercontent.com/PocketMine/PocketMine-MP/${BRANCH}/CONTRIBUTING.md" > CONTRIBUTING.md
209+
download_file "https://raw.githubusercontent.com/PocketMine/php-build-scripts/${BRANCH}/compile.sh" > compile.sh
209210
fi
210211

211212
chmod +x compile.sh

0 commit comments

Comments
 (0)