bin/b: fix directory matching

This commit is contained in:
xerus2000 2020-11-13 13:51:04 +01:00
parent 1ddbd75d06
commit ff04aba675
1 changed files with 2 additions and 2 deletions

View File

@ -11,8 +11,8 @@
arg=$(test $# -gt 0 && echo "${@:-1}" || echo .)
file $arg | grep -v --color=never directory
case "$(file --dereference --mime $arg)" in
*directory) ls -l --color=auto --almost-all --human-readable --group-directories-first --file-type --dereference-command-line "$@";;
*binary*) ;;
*inode/directory*) ls -l --color=auto --almost-all --human-readable --group-directories-first --file-type --dereference-command-line "$@";;
*binary) ;;
*) bat --style header "$@";;
esac
#fi