pack : add support for tar.gz and tar.xz archives.

This commit is contained in:
Dmitry Voronin 2023-11-11 19:56:04 +03:00
parent 02dae31880
commit dcc104297e

View file

@ -1,4 +1,4 @@
_UNPACK_SUPPORTED=".tar$|.tgz$|.txz$|.zip$|.iso$" _UNPACK_SUPPORTED=".tar$|.tgz$|.txz$|.tar.gz$|.tar.xz$|.zip$|.iso$"
# Pack files into desired format. # Pack files into desired format.
# Usage: pack <TARGET.ext> <FILES> # Usage: pack <TARGET.ext> <FILES>
@ -89,10 +89,10 @@ unpack()
"7z") "7z")
_unpack_7z "${target}" _unpack_7z "${target}"
;; ;;
"tgz") "tgz"|"gz")
_unpack_tgz "${target}" _unpack_tgz "${target}"
;; ;;
"txz") "txz"|"xz")
_unpack_txz "${target}" _unpack_txz "${target}"
;; ;;
"tar") "tar")