From 7ff9bbd91bc77ee836a9604bd0c4da2d3b198be2 Mon Sep 17 00:00:00 2001 From: Eugen Blattner Date: Fri, 18 Mar 2022 11:43:05 +0100 Subject: [PATCH] fix: use inflating binaries instead of deflating in unarchive function --- modules/archive/functions/unarchive | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/archive/functions/unarchive b/modules/archive/functions/unarchive index 66c7e35..d66fef8 100644 --- a/modules/archive/functions/unarchive +++ b/modules/archive/functions/unarchive @@ -34,10 +34,10 @@ fi # here, we check for dropin/multi-threaded replacements # this should eventually be moved to modules/archive/init.zsh # as a global alias -if (( $+commands[pigz] )); then - _gzip_bin='pigz' +if (( $+commands[unpigz] )); then + _gzip_bin='unpigz' else - _gzip_bin='gzip' + _gzip_bin='gunzip' fi if (( $+commands[pixz] )); then @@ -46,12 +46,12 @@ else _xz_bin='xz' fi -if (( $+commands[lbzip2] )); then - _bzip2_bin='lbzip2' -elif (( $+commands[pbzip2] )); then - _bzip2_bin='pbzip2' +if (( $+commands[lbunzip2] )); then + _bzip2_bin='lbunzip2' +elif (( $+commands[pbunzip2] )); then + _bzip2_bin='pbunzip2' else - _bzip2_bin='bzip2' + _bzip2_bin='bunzip2' fi _zstd_bin='zstd'