2 Commits
Author SHA1 Message Date
Lance Fetters 97fb9594dc Support BSD version of sed in java version check
Previously, the `check_java_version` function used a regular expression
that worked with GNU sed, but failed with BSD sed. This change uses an
extended regular expression that works with both sed flavors.
2025-05-09 14:46:34 +02:00
Lance Fetters 9795c155a3 Ignore all java options when checking version
Previously, only the environment variable _JAVA_OPTIONS was being
filtered out; this change will filter out all options (e.g.
_JAVA_OPTIONS, JAVA_TOOL_OPTIONS, JAVA_OPTS), and anything else that
comes before the string "openjdk version"/"java version".
2025-05-08 21:28:15 +02:00