Skip to content

Commit f293f0d

Browse files
committed
check for 17+ instead of just 17
taken from #96
1 parent 1637ecf commit f293f0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linux/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#
1818

1919
# Check if Java is installed and the version is at least 17
20-
if java -version 2>&1 | grep -q "version \"17"; then
20+
if (( $(java -version 2>&1 | grep -Po '(?<=")[0-9]{2}') >= 17 )); then
2121
latest=$(ls -t CustomLauncherRewrite-*.jar | head -n1)
2222
java -jar "$latest"
2323
else

0 commit comments

Comments
 (0)