We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1637ecf commit f293f0dCopy full SHA for f293f0d
linux/run.sh
@@ -17,7 +17,7 @@
17
#
18
19
# Check if Java is installed and the version is at least 17
20
-if java -version 2>&1 | grep -q "version \"17"; then
+if (( $(java -version 2>&1 | grep -Po '(?<=")[0-9]{2}') >= 17 )); then
21
latest=$(ls -t CustomLauncherRewrite-*.jar | head -n1)
22
java -jar "$latest"
23
else
0 commit comments