Skip to content

Commit eb0cb6f

Browse files
committed
fix: exclude fx and GraalVM java versions
1 parent 68d8027 commit eb0cb6f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/prepare_jdks.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,10 @@ prepare_jdks::_get_latest_java_version() {
172172
(($# == 1)) || cu::die "${FUNCNAME[0]} requires exact 1 argument! But provided $#: $*"
173173

174174
local version_pattern="$1" input result
175-
input=$(cat)
175+
# exclude
176+
# - fx: \.fx-
177+
# - GraalVM: -(grl|gln|nik)\>
178+
input=$(cat | grep -vE '\.fx-|-(grl|gln|nik|mandrel)\>')
176179

177180
# 1. first find non-ea and non-fx versions
178181
result="$(echo "$input" | grep -vE '\.ea\.|\.fx-' | cu::get_latest_version_match "$version_pattern")"

0 commit comments

Comments
 (0)