diff options
author | merakor <cem@ckyln.com> | 2020-04-30 08:04:54 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-04-30 08:04:54 +0000 |
commit | 53cc7f1d81791c7e7af0e3a1601d38a94d555ea5 (patch) | |
tree | 60f8bbc6743eec6a83b62e5924652e57ce61194b | |
parent | e6f0ddfaf5e98a09786f7d078863334befaedc85 (diff) | |
download | cpt-53cc7f1d81791c7e7af0e3a1601d38a94d555ea5.tar.gz |
kiss: force stdout on decompression
FossilOrigin-Name: 22964b4766b1aa031c03bb929e51cd0d53d9dea1e6b563d38157f915de034f19
-rwxr-xr-x | kiss | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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" } |