extract: keep *.gz files with pigz and gunzip

Fixes #8368
master
Marc Cornellà 7 years ago committed by GitHub
parent 86b39cfa0a
commit 24726678dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      plugins/extract/extract.plugin.zsh

@ -41,7 +41,7 @@ extract() {
&& tar --lzma -xvf "$1" \
|| lzcat "$1" | tar xvf - ;;
(*.tar) tar xvf "$1" ;;
(*.gz) (( $+commands[pigz] )) && pigz -d "$1" || gunzip "$1" ;;
(*.gz) (( $+commands[pigz] )) && pigz -dk "$1" || gunzip -k "$1" ;;
(*.bz2) bunzip2 "$1" ;;
(*.xz) unxz "$1" ;;
(*.lzma) unlzma "$1" ;;

Loading…
Cancel
Save