aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-04-30 08:04:54 +0000
committermerakor <cem@ckyln.com>2020-04-30 08:04:54 +0000
commit53cc7f1d81791c7e7af0e3a1601d38a94d555ea5 (patch)
tree60f8bbc6743eec6a83b62e5924652e57ce61194b
parente6f0ddfaf5e98a09786f7d078863334befaedc85 (diff)
downloadcpt-53cc7f1d81791c7e7af0e3a1601d38a94d555ea5.tar.gz
kiss: force stdout on decompression
FossilOrigin-Name: 22964b4766b1aa031c03bb929e51cd0d53d9dea1e6b563d38157f915de034f19
-rwxr-xr-xkiss7
1 files changed, 4 insertions, 3 deletions
diff --git a/kiss b/kiss
index d9feeea..2616110 100755
--- a/kiss
+++ b/kiss
@@ -91,10 +91,11 @@ run_hook() {
decompress() {
case $1 in
- *.bz2) bzip2 -d ;;
+ *.tar) cat ;;
+ *.bz2) bzip2 -cd ;;
*.xz) xz -dcT 0 ;;
- *.tgz|*.gz) gzip -d ;;
- *.zst) zstd -d ;;
+ *.tgz|*.gz) gzip -cd ;;
+ *.zst) zstd -cd ;;
esac < "$1"
}