Fixing zstd uncompression for Oracle Linux (#1607)

This commit is contained in:
Noa Himesaka 2022-07-17 01:05:32 +09:00 committed by GitHub
parent e8f3fd2d71
commit 76628e8ccc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -262,9 +262,12 @@ function extract() {
application/zip)
unzip -o -q -d "${destDir}" "${src}"
;;
application/x-tar|application/gzip|application/x-gzip|application/x-bzip2|application/zstd|application/x-zstd)
application/x-tar|application/gzip|application/x-gzip|application/x-bzip2)
tar -C "${destDir}" -xf "${src}"
;;
application/zstd|application/x-zstd)
tar -C "${destDir}" --use-compress-program=unzstd -xf "${src}"
;;
*)
log "ERROR: unsupported archive type: $type"
return 1