extract: add tar.lz support (#8479)

This commit is contained in:
Mustaqim Malim authored and Marc Cornellà committed 2019-12-18 10:53:53 +01:00
1 parent 1761685d3e
commit ad1169bf39
3 files changed
+3 -1

No files matched your search

+1
View File
@@ -45,6 +45,7 @@ extract() {
&& tar --zstd -xvf "$1" \
|| zstdcat "$1" | tar xvf - ;;
(*.tar) tar xvf "$1" ;;
(*.tar.lz) (( $+commands[lzip] )) && tar xvf "$1" ;;
(*.gz) (( $+commands[pigz] )) && pigz -dk "$1" || gunzip -k "$1" ;;
(*.bz2) bunzip2 "$1" ;;
(*.xz) unxz "$1" ;;