diff --git a/README.md b/README.md index 9c2d3a0..6a60e1a 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,10 @@ Paar wunderbare Scripts ## Spigot Auto-Build Scripts Systemrequirements:
-Distribution: Debian 9-10 / Ubuntu 16.04 - 18.04
+Distribution: Debian 9-11 / Ubuntu 16.04 - 20.04
CPU: 1 vCore
Ram: 2GB

-![](https://img.shields.io/badge/Debian%2010-work!-green) ![](https://img.shields.io/badge/Debian%209-work!-green) ![](https://img.shields.io/badge/Ubuntu%2018.04-work!-green)
+![](https://img.shields.io/badge/Debian%2011-work!-green) ![](https://img.shields.io/badge/Debian%2010-work!-green) ![](https://img.shields.io/badge/Debian%209-work!-green) ![](https://img.shields.io/badge/Ubuntu%2020.04-work!-green) ![](https://img.shields.io/badge/Ubuntu%2018.04-work!-green)
bash <(wget -O - 'https://git.io/JYBMI') @@ -17,7 +17,7 @@ Ram: 2GB

## TS3AudioBot Installer -![](https://img.shields.io/badge/Debian%2010-work!-green) ![](https://img.shields.io/badge/Debian%209-work!-green) ![](https://img.shields.io/badge/Ubuntu%2018.04-work!-green)
+![](https://img.shields.io/badge/Debian%2011-work!-green) ![](https://img.shields.io/badge/Debian%2010-work!-green) ![](https://img.shields.io/badge/Debian%209-work!-green) ![](https://img.shields.io/badge/Ubuntu%2020.04-work!-green) ![](https://img.shields.io/badge/Ubuntu%2018.04-work!-green)
bash <(wget -O - 'https://git.io/JYBMG') diff --git a/sh_scripts/spigot_autobild.sh b/sh_scripts/spigot_autobild.sh index 39966ee..8a9e61b 100644 --- a/sh_scripts/spigot_autobild.sh +++ b/sh_scripts/spigot_autobild.sh @@ -23,14 +23,35 @@ echo "" echo "" echo "" echo "" - -rm BuildTools.jar -wget https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar clear -echo "Checking software packages ..." -apt-get update -apt-get install git default-jdk -y -echo "start building ..." -sleep 2 -java -jar BuildTools.jar +FILE=BuildTool.jar +if [ -f "$FILE" ]; then # Datei ist nicht vorhanden + echo "Checking software packages ..." + apt-get update + apt-get install git default-jdk openjdk-17-jdk openjdk-17-jre -y + clear + echo "Checking software packages ..." + echo -n "Which version should be built? (z.B. 1.18): " + read; + echo "start building Spigot-${REPLY} ..." + sleep 2 + java -jar BuildTools.jar --rev ${REPLY} +else # Datei ist nicht vorhanden + echo "downloading BuildTools ..." + rm BuildTools.jar + wget https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar + clear + echo "downloading BuildTools ..." + echo "Checking software packages ..." + apt-get update + apt-get install git default-jdk openjdk-17-jdk openjdk-17-jre -y + clear + echo "downloading BuildTools ..." + echo "Checking software packages ..." + echo -n "Which version should be built? (z.B. 1.18): " + read; + echo "start building Spigot-${REPLY} ..." + sleep 2 + java -jar BuildTools.jar --rev ${REPLY} +fi \ No newline at end of file