diff options
author | Tuowen Zhao <ztuowen@gmail.com> | 2021-06-06 14:40:38 -0600 |
---|---|---|
committer | Tuowen Zhao <ztuowen@gmail.com> | 2021-06-06 14:40:38 -0600 |
commit | 0144641b7d8e4e6ff6ce153039b5a827f5347904 (patch) | |
tree | 88ffb476ef9c1eb84b22006afe8a729fb27dc3c4 /plugins/extract/extract.plugin.zsh | |
parent | ffdc4bfe1204f911d71b136dbd95784176a44eb6 (diff) | |
parent | 706b2f3765d41bee2853b17724888d1a3f6f00d9 (diff) | |
download | zsh-0144641b7d8e4e6ff6ce153039b5a827f5347904.tar.gz zsh-0144641b7d8e4e6ff6ce153039b5a827f5347904.tar.bz2 zsh-0144641b7d8e4e6ff6ce153039b5a827f5347904.zip |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'plugins/extract/extract.plugin.zsh')
-rw-r--r-- | plugins/extract/extract.plugin.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/extract/extract.plugin.zsh b/plugins/extract/extract.plugin.zsh index 46e69f08d..e390e2dcc 100644 --- a/plugins/extract/extract.plugin.zsh +++ b/plugins/extract/extract.plugin.zsh @@ -55,7 +55,7 @@ extract() { (*.lz4) lz4 -d "$1" ;; (*.lzma) unlzma "$1" ;; (*.z) uncompress "$1" ;; - (*.zip|*.war|*.jar|*.sublime-package|*.ipa|*.ipsw|*.xpi|*.apk|*.aar|*.whl) unzip "$1" -d $extract_dir ;; + (*.zip|*.war|*.jar|*.ear|*.sublime-package|*.ipa|*.ipsw|*.xpi|*.apk|*.aar|*.whl) unzip "$1" -d $extract_dir ;; (*.rar) unrar x -ad "$1" ;; (*.rpm) mkdir "$extract_dir" && cd "$extract_dir" && rpm2cpio "../$1" | cpio --quiet -id && cd .. ;; (*.7z) 7za x "$1" ;; |