Skip to content

Instantly share code, notes, and snippets.

@sathonay
Last active September 2, 2020 14:47
Show Gist options
  • Save sathonay/de998e76f8761f2dc1eacc29914e5b7e to your computer and use it in GitHub Desktop.
Save sathonay/de998e76f8761f2dc1eacc29914e5b7e to your computer and use it in GitHub Desktop.
#!/bin/bash
FILE="./BuildTools.jar"
if [ ! -f "$FILE" ] ;
then
echo "Downloading BuildTools.jar ..." >&2
curl https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar -O BuildTools.jar
fi
read -p "Which version do you want to build? : " ver && mkdir $ver && cp ./BuildTools.jar $ver && cd $ver && java -jar BuildTools.jar --rev $ver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment