OS X compatible buildtools.sh (#2513) @Argetan

* OS X compatible buildtools.sh

* Update buildtools.sh
This commit is contained in:
Julian van Doorn 2019-04-30 08:55:54 +02:00 committed by md678685
parent d680ed7363
commit f793b7607f

6
scripts/buildtools.sh Normal file → Executable file
View File

@ -10,7 +10,11 @@ is_installed() {
ensure_buildtools() {
if [ ! -f "BuildTools.jar" ]; then
echo "Downloading BuildTools..."
wget -O BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
if [[ "$OSTYPE" == "darwin"* ]]; then
curl https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar -o BuildTools.jar
else
wget -O BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
fi
fi
}