Created
July 19, 2020 15:58
-
-
Save DanEdens/feac9fd12b5829a7e56f4ebe030513e3 to your computer and use it in GitHub Desktop.
installbfg.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# install java | |
sudo apt -y install default-jre-headless | |
# fetch latest bfg.jar | |
sudo wget https://repo1.maven.org/maven2/com/madgag/bfg/1.13.0/bfg-1.13.0.jar -O /usr/local/bin/bfg-latest.jar | |
# install to /usr/local/bin | |
echo -e "#!/bin/bash\njava -jar /usr/local/bin/bfg-latest.jar \$@" | sudo tee /usr/local/bin/bfg | |
# mark executable | |
sudo chmod +x /usr/local/bin/bfg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment