mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-08-16 09:48:06 +02:00
feat(extract): add support for .zlib
and .exe
files (#11085)
Fixes #11085
This commit is contained in:
@ -83,9 +83,10 @@ EOF
|
||||
builtin cd -q ../data; extract ../data.tar.*
|
||||
builtin cd -q ..; command rm *.tar.* debian-binary ;;
|
||||
(*.zst) unzstd "$full_path" ;;
|
||||
(*.cab) cabextract "$full_path" ;;
|
||||
(*.cab|*.exe) cabextract "$full_path" ;;
|
||||
(*.cpio|*.obscpio) cpio -idmvF "$full_path" ;;
|
||||
(*.zpaq) zpaq x "$full_path" ;;
|
||||
(*.zlib) zlib-flate -uncompress < "$full_path" > "${file:r}" ;;
|
||||
(*)
|
||||
echo "extract: '$file' cannot be extracted" >&2
|
||||
success=1 ;;
|
||||
|
Reference in New Issue
Block a user