kiss: Sort compression methods

This commit is contained in:
Dylan Araps 2020-05-07 16:25:53 +03:00
parent 931b2e13f3
commit 754cb72ec8
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

8
kiss
View File

@ -139,11 +139,11 @@ run_hook() {
decompress() {
case $1 in
*.bz2) bzip2 -d ;;
*.xz) xz -dcT 0 ;;
*.tgz|*.gz) gzip -d ;;
*.zst) zstd -dc ;;
*.lzma|*.lz) lzma -dc ;;
*.tar) cat ;;
*.tgz|*.gz) gzip -d ;;
*.xz) xz -dcT 0 ;;
*.zst) zstd -dc ;;
esac < "$1"
}
@ -603,9 +603,9 @@ pkg_tar() (
"$tar" cf - . | case ${KISS_COMPRESS:=gz} in
bz2) bzip2 -z ;;
gz) gzip -6 ;;
lzma) lzma -z ;;
xz) xz -zT 0 ;;
zst) zstd -z ;;
lzma) lzma -z ;;
esac > "$bin_dir/$1#$version-$release.tar.${KISS_COMPRESS:=gz}"
log "$1" "Successfully created tarball"