Tiny fix: make file follow symlinks

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
Jack L. Frost 2018-08-01 18:27:45 +03:00
parent beae2098fb
commit ada3aafd2c
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ handle_target() {
[[ "$target" =~ ^/.* ]] || { target="${PWD}/${target}"; } # Turn relative paths to absolute ones.
IFS=';' read target_mimetype charset <<< $( file -ib "$target" )
IFS=';' read target_mimetype charset <<< $( file -ibL "$target" )
target_left=$target_mimetype
set -- "${mime_handlers[@]}"