bin/b: accept all kinds of archives (e.g. jar)

This commit is contained in:
xeruf 2021-12-10 16:00:27 +01:00
parent 2bed0f63be
commit 77fd546800
1 changed files with 3 additions and 2 deletions

View File

@ -47,7 +47,8 @@ for arg; do
;; ;;
(*\ video/*) (*\ video/*)
suffix=_thumbs.jpg suffix=_thumbs.jpg
mtn -i -t -W -D6 -b 0,6 -c $grid -w $(expr $(tput cols) '*' 20) -O $prefix -o $suffix "$arg" 2>/dev/null mtn -i -t -W -D6 -b 0,6 -c $grid -w $(expr $(tput cols) '*' 20) \
-O $prefix -o $suffix "$arg" 2>/dev/null
timg -W "$prefix/$(basename "${arg%.*}")$suffix" timg -W "$prefix/$(basename "${arg%.*}")$suffix"
;; ;;
(*\ image/*) (*\ image/*)
@ -68,7 +69,7 @@ for arg; do
} }
fi fi
;; ;;
(*:\ *compress*|*tar\ archive) (*:\ *compress*|*\ archive*)
if test $# = 1 if test $# = 1
then nvim "$arg" then nvim "$arg"
else case "$arg" in (*.part);; (*) else case "$arg" in (*.part);; (*)