Tiny fix: make file follow symlinks
Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
parent
beae2098fb
commit
ada3aafd2c
2
sx-open
2
sx-open
|
@ -116,7 +116,7 @@ handle_target() {
|
||||||
|
|
||||||
[[ "$target" =~ ^/.* ]] || { target="${PWD}/${target}"; } # Turn relative paths to absolute ones.
|
[[ "$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
|
target_left=$target_mimetype
|
||||||
|
|
||||||
set -- "${mime_handlers[@]}"
|
set -- "${mime_handlers[@]}"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user