mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-22 09:08:01 +01:00
OS X compatible buildtools.sh (#2513) @Argetan
* OS X compatible buildtools.sh * Update buildtools.sh
This commit is contained in:
parent
d680ed7363
commit
f793b7607f
4
scripts/buildtools.sh
Normal file → Executable file
4
scripts/buildtools.sh
Normal file → Executable file
@ -10,8 +10,12 @@ is_installed() {
|
||||
ensure_buildtools() {
|
||||
if [ ! -f "BuildTools.jar" ]; then
|
||||
echo "Downloading BuildTools..."
|
||||
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
|
||||
}
|
||||
|
||||
run_buildtools() {
|
||||
|
Loading…
Reference in New Issue
Block a user