aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfbt <fbt@fleshless.org>2018-08-01 18:27:45 +0300
committerfbt <fbt@fleshless.org>2018-08-01 18:27:45 +0300
commitada3aafd2ca186d9a4826734d824f53fe533294f (patch)
tree294c44cbac70cdb85ee834aa7f84d0a487145aa2
parentbeae2098fbdb69b1ec0912e5d34b11f69281edcd (diff)
downloadsx-open-ada3aafd2ca186d9a4826734d824f53fe533294f.tar.gz
sx-open-ada3aafd2ca186d9a4826734d824f53fe533294f.zip
Tiny fix: make file follow symlinks1.6.1
Signed-off-by: fbt <fbt@fleshless.org>
-rwxr-xr-xsx-open2
1 files changed, 1 insertions, 1 deletions
diff --git a/sx-open b/sx-open
index dc11b7a..63ade16 100755
--- a/sx-open
+++ b/sx-open
@@ -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[@]}"