Skip to content

Commit 3e8c80b

Browse files
amandelhalcyon
andauthored
Support tgz file type (#236)
- IBM archives come as tgz. - implements #235 Co-authored-by: Scott McLeod <halcyonblue@gmail.com>
1 parent aa1ebc1 commit 3e8c80b

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

bin/functions

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ function install {
169169
;;
170170
*tar.gz) tar xf "${package_filename}"
171171
;;
172+
*tgz) tar xf "${package_filename}"
173+
;;
172174
*) echo "Cannot extract ${package_filename}"
173175
exit 1
174176
;;

update_data.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ do
5151
done
5252

5353
RELEASE_QUERY='.[]
54-
| select(.file_type | IN("tar.gz", "zip"))
54+
| select(.file_type | IN("tar.gz", "tgz", "zip"))
5555
| .["features"] = (.features | map(select(IN("musl", "javafx", "lite", "large_heap", "certified"))))
5656
| [([.vendor, if (.image_type == "jre") then .image_type else empty end, if (.jvm_impl == "openj9") then .jvm_impl else empty end, if ((.features | length) == 0) then empty else (.features | join("-")) end, .version] | join("-")), .filename, .url, .sha256]
5757
| @tsv'

0 commit comments

Comments
 (0)