File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,10 @@ function normalize_features {
4242 then
4343 features+=(" large_heap" )
4444 fi
45+ if [[ " ${2} " == " alpine-linux" ]]
46+ then
47+ features+=(" musl" )
48+ fi
4549 echo " ${features[@]} "
4650}
4751
@@ -61,7 +65,7 @@ function download {
6165 echo " Skipping non-JRE, non-JDK image ${filename} "
6266 return 0
6367 ;;
64- esac
68+ esac
6569
6670 local ext
6771 # shellcheck disable=SC2016
@@ -88,6 +92,9 @@ function download {
8892 return 0
8993 fi
9094
95+ local os
96+ os=" $( jq -r ' .os' <<< " ${json}" ) "
97+
9198 local md_json
9299 md_json=" $( metadata_json \
93100 " ${VENDOR} " \
@@ -96,11 +103,11 @@ function download {
96103 " ${normalized_version} " \
97104 " $( jq -r ' .java_version' <<< " ${json}" ) " \
98105 " ${jvm_impl} " \
99- " $( normalize_os " $( jq -r ' .os ' <<< " ${json} " ) " ) " \
106+ " $( normalize_os " $os " ) " \
100107 " $( normalize_arch " $( jq -r ' .architecture' <<< " ${json}" ) " ) " \
101108 " ${ext} " \
102109 " $( jq -r ' .image_type' <<< " ${json}" ) " \
103- " $( normalize_features " $( jq -r ' .heap_size' <<< " ${json}" ) " ) " \
110+ " $( normalize_features " $( jq -r ' .heap_size' <<< " ${json}" ) " " $os " ) " \
104111 " ${url} " \
105112 " $( hash_file ' md5' " ${archive} " " ${CHECKSUM_DIR} " ) " \
106113 " $( hash_file ' sha1' " ${archive} " " ${CHECKSUM_DIR} " ) " \
You can’t perform that action at this time.
0 commit comments