From f793b7607f0dd1c4da71a936a6ab6b8765c6d0c7 Mon Sep 17 00:00:00 2001 From: Julian van Doorn Date: Tue, 30 Apr 2019 08:55:54 +0200 Subject: [PATCH] OS X compatible buildtools.sh (#2513) @Argetan * OS X compatible buildtools.sh * Update buildtools.sh --- scripts/buildtools.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) mode change 100644 => 100755 scripts/buildtools.sh diff --git a/scripts/buildtools.sh b/scripts/buildtools.sh old mode 100644 new mode 100755 index 8f969f7f2..87411a6c6 --- a/scripts/buildtools.sh +++ b/scripts/buildtools.sh @@ -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 }