mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Merge pull request #955 from rck/master
preview-tui-ext: use atool for rpm/deb
This commit is contained in:
commit
47a779b1bf
|
@ -210,6 +210,8 @@ preview_file() {
|
||||||
fifo_pager unzip -l "$1"
|
fifo_pager unzip -l "$1"
|
||||||
elif [ "$ext" = "gz" ] || [ "$ext" = "bz2" ]; then
|
elif [ "$ext" = "gz" ] || [ "$ext" = "bz2" ]; then
|
||||||
fifo_pager tar -tvf "$1"
|
fifo_pager tar -tvf "$1"
|
||||||
|
elif [ "$mimetype" = "application/x-rpm" ] || [ "$mimetype" = "application/vnd.debian.binary-package" ] && exists atool; then
|
||||||
|
fifo_pager atool -l "$1"
|
||||||
else
|
else
|
||||||
fifo_pager print_bin_info "$1"
|
fifo_pager print_bin_info "$1"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue