4ad09ab0b10adc90730476bd27f24f93d94728ad
- Author
- Ing. Jan Kaláb <jan+github@kalabovi.org>
- Committer
- GitHub <noreply@github.com>
- Date
Message
feat(extract): prefer using `pbzip2` instead of `bunzip2` (#12280)
Diff
1diff --git a/plugins/extract/extract.plugin.zsh b/plugins/extract/extract.plugin.zsh
2index 88d8b0740aca25d6fbe6835423b661d5632a7471..80ca50c504ed16af82478553b6ad18edfe14bb3f 100644
3--- a/plugins/extract/extract.plugin.zsh
4+++ b/plugins/extract/extract.plugin.zsh
5@@ -70,7 +70,7 @@ EOF
6 (*.tar.lz4) lz4 -c -d "$full_path" | tar xvf - ;;
7 (*.tar.lrz) (( $+commands[lrzuntar] )) && lrzuntar "$full_path" ;;
8 (*.gz) (( $+commands[pigz] )) && pigz -cdk "$full_path" > "${file:t:r}" || gunzip -ck "$full_path" > "${file:t:r}" ;;
9- (*.bz2) bunzip2 "$full_path" ;;
10+ (*.bz2) (( $+commands[pbzip2] )) && pbzip2 -d "$full_path" || bunzip2 "$full_path" ;;
11 (*.xz) unxz "$full_path" ;;
12 (*.lrz) (( $+commands[lrunzip] )) && lrunzip "$full_path" ;;
13 (*.lz4) lz4 -d "$full_path" ;;