Skip to content

Commit

Permalink
fix: use inflating binaries instead of deflating in unarchive function
Browse files Browse the repository at this point in the history
  • Loading branch information
lecodeski authored and jeffwidman committed Apr 1, 2022
1 parent 1ff1099 commit 3da6727
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions modules/archive/functions/unarchive
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'
Expand Down

0 comments on commit 3da6727

Please sign in to comment.