mirror of
https://github.com/eth-p/bat-extras.git
synced 2025-02-13 07:39:12 +01:00
batpipe: Fix viewing listings in zip files
This commit is contained in:
parent
988780bce9
commit
0d2e999b2a
@ -161,7 +161,7 @@ viewer_unzip_supports() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
viewer_unzip_process() {
|
viewer_unzip_process() {
|
||||||
if [[ -n "$1" ]]; then
|
if [[ -n "$2" ]]; then
|
||||||
unzip -p "$1" "$2" | bat_if_not_bat --file-name="$1/$2"
|
unzip -p "$1" "$2" | bat_if_not_bat --file-name="$1/$2"
|
||||||
else
|
else
|
||||||
batpipe_header "Viewing contents of archive: %{PATH}%s" "$1"
|
batpipe_header "Viewing contents of archive: %{PATH}%s" "$1"
|
||||||
|
Loading…
Reference in New Issue
Block a user