Merge branch 'master' of skeh.site:ida/auto-mc

This commit is contained in:
ida schmidt 2023-06-17 20:25:01 -07:00
commit 25f04e792b

View file

@ -35,10 +35,10 @@ function versionprompt {
}
versionprompt
# this has to be seperate from the first run of apt since java versions before 16 is deprecated for minecraft 1.17+ and java 16 is quite new
# this has to be seperate from the first run of apt since java versions before 16 is deprecated for minecraft 1.17 and before 17 for 1.18 (and 17-jre is in debian, unlike 16)
echo "installing java..."
if printf '%s\n' 1.16.5 $VERSION | sort -VC; then # check if $VERSION is above 1.16.5
apt install -y openjdk-16-jre-headless
apt install -y openjdk-17-jre-headless
else
apt install -y default-jre-headless
fi