kiss: Tar .txz support

This commit is contained in:
Dylan Araps 2020-05-11 17:34:57 +03:00
parent cc665bf849
commit a73b7278ac
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

4
kiss
View File

@ -136,7 +136,7 @@ decompress() {
*.lz) lzip -dc ;;
*.tar) cat ;;
*.tgz|*.gz) gzip -d ;;
*.xz) xz -dcT 0 ;;
*.xz|*.txz) xz -dcT 0 ;;
*.zst) zstd -dc ;;
esac < "$1"
}
@ -359,7 +359,7 @@ pkg_extract() {
# Tarballs of any kind. This is a shell equivalent of
# GNU tar's '--strip-components 1'.
*://*.tar|*://*.tar.??|*://*.tar.???|*://*.tar.????|*://*.tgz)
*://*.tar|*://*.tar.??|*://*.tar.???|*://*.tar.????|*://*.t?z)
decompress "$src_dir/$1/${src##*/}" > .ktar
"$tar" xf .ktar ||