From 53cc7f1d81791c7e7af0e3a1601d38a94d555ea5 Mon Sep 17 00:00:00 2001 From: merakor Date: Thu, 30 Apr 2020 08:04:54 +0000 Subject: kiss: force stdout on decompression FossilOrigin-Name: 22964b4766b1aa031c03bb929e51cd0d53d9dea1e6b563d38157f915de034f19 --- kiss | 7 ++++--- 1 file 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" } -- cgit v1.2.3