add z for explicit gzip support

This commit is contained in:
Gabriel Gómez de la Torre 2023-11-25 10:59:46 -05:00 committed by GitHub
commit 7d76bc38f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -168,7 +168,7 @@ uname_arch_check() {
untar() { untar() {
tarball=$1 tarball=$1
case "${tarball}" in case "${tarball}" in
*.tar.gz | *.tgz | *.tar.xz) tar --no-same-owner -xf "${tarball}" ;; *.tar.gz | *.tgz | *.tar.xz) tar --no-same-owner -xzf "${tarball}" ;;
*.tar) tar --no-same-owner -xf "${tarball}" ;; *.tar) tar --no-same-owner -xf "${tarball}" ;;
*.zip) unzip "${tarball}" ;; *.zip) unzip "${tarball}" ;;
*) *)