feat: Filter distributions and take normal heap size
This commit is contained in:
parent
c43f699705
commit
b496a3f1af
3
warp4j
3
warp4j
@ -475,8 +475,11 @@ function find_distro_link() {
|
||||
local info=$1 # info fetched from AdoptOpenJDK
|
||||
local version=$2 # concrete distro version like "11.0.2+9"
|
||||
local link=$(echo "$info" \
|
||||
| grep -B13 "\"heap_size\": \"normal\"" \
|
||||
| grep -B11 "\"semver\": \"$version\"" \
|
||||
| grep "binary_link" \
|
||||
| sort --reverse \
|
||||
| head -n 1 \
|
||||
| awk '{print $2}' \
|
||||
| sed -e 's/"//g' -e 's/,//')
|
||||
if [[ -z $link ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user