diff options
author | Richard Pöttler <richard.poettler@gmail.com> | 2019-11-19 17:00:53 +0100 |
---|---|---|
committer | Marc CornellĂ <marc.cornella@live.com> | 2019-11-19 17:00:53 +0100 |
commit | 68c4c06283739cc0c7f619172b35544e88921308 (patch) | |
tree | c96fed33a01d4a401e55269aac39e45266e65863 /plugins/extract/extract.plugin.zsh | |
parent | 26df8a22741ea4bb5264233344e42ce900fd26b6 (diff) | |
download | zsh-68c4c06283739cc0c7f619172b35544e88921308.tar.gz zsh-68c4c06283739cc0c7f619172b35544e88921308.tar.bz2 zsh-68c4c06283739cc0c7f619172b35544e88921308.zip |
extract: add RPM archive support (#8347)
Also more quiet extraction. -D for cpio was not used due to additional
output.
Diffstat (limited to 'plugins/extract/extract.plugin.zsh')
-rw-r--r-- | plugins/extract/extract.plugin.zsh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/extract/extract.plugin.zsh b/plugins/extract/extract.plugin.zsh index d3d847daf..27b9e50f1 100644 --- a/plugins/extract/extract.plugin.zsh +++ b/plugins/extract/extract.plugin.zsh @@ -48,6 +48,7 @@ extract() { (*.z) uncompress "$1" ;; (*.zip|*.war|*.jar|*.sublime-package|*.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" ;; (*.deb) mkdir -p "$extract_dir/control" |