Merge branch 'master' of skeh.site:ida/auto-mc
This commit is contained in:
commit
25f04e792b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue