aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-03-18 12:07:54 +0000
committermerakor <cem@ckyln.com>2020-03-18 12:07:54 +0000
commit866c8be2da15cd65430c3b4a1ffb73cf6b63c74c (patch)
tree33c93757c5e46a54e14cc49499f7591907c5bf6b /kiss
parentff53e3d68b65305663b04edc07265a9831f0a28d (diff)
downloadcpt-866c8be2da15cd65430c3b4a1ffb73cf6b63c74c.tar.gz
fallback to gzip if the compression method is wrong
FossilOrigin-Name: c8b98aafa23045d325fa955c40f1eebdf2ea61fb21e353fbbc5fac44b46f760b
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss1
1 files changed, 1 insertions, 0 deletions
diff --git a/kiss b/kiss
index 6e398af..d2144eb 100755
--- a/kiss
+++ b/kiss
@@ -518,6 +518,7 @@ pkg_tar() {
xz) xz -zT 0 ;;
gz) gzip -6 ;;
zst) zstd -3 ;;
+ *) gzip -6 ;; # Fallback to gzip
esac \
> "$bin_dir/$1#$version-$release.tar.${KISS_COMPRESS:=gz}"