Read the Java release from $JAVA_HOME/release so the first mc-image-helper call gets the same options (#4292)

This commit is contained in:
u9g
2026-09-25 08:28:15 -05:00
committed by GitHub
parent c469eadc36
commit 79a5346182
2 changed files with 18 additions and 1 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ if isTrue "$PREFER_IPV6"; then
export JVM_DD_OPTS
fi
if (( $(mc-image-helper java-release) >= 17 )); then
if (( $(getJavaRelease) >= 17 )); then
MC_IMAGE_HELPER_OPTS+=" --enable-native-access=ALL-UNNAMED"
export MC_IMAGE_HELPER_OPTS
fi