aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfbt <fbt@fleshless.org>2018-08-02 12:52:56 +0300
committerfbt <fbt@fleshless.org>2018-08-02 12:52:56 +0300
commit27801d670fb4fc5283169cbacf5ff6ddaeea3ef8 (patch)
tree5b4c3b36cbeac62d351633952f3f7ddeb2ab226e
parentd7061225119067a641ab6d0bd93b7a23c18a5024 (diff)
downloadsx-open-27801d670fb4fc5283169cbacf5ff6ddaeea3ef8.tar.gz
sx-open-27801d670fb4fc5283169cbacf5ff6ddaeea3ef8.zip
I have no ide how that piece of code got mangled1.6.3
Signed-off-by: fbt <fbt@fleshless.org>
-rwxr-xr-xsx-open3
1 files changed, 2 insertions, 1 deletions
diff --git a/sx-open b/sx-open
index cdc98e3..f56d9f8 100755
--- a/sx-open
+++ b/sx-open
@@ -120,7 +120,8 @@ handle_target() {
IFS=';' read target_mimetype _ <<< $( file -ib "$target" )
target_left=$target_mimetype
- IFS=';' read target_mimetype_true _ <<< $( file -ib "$target" )
+ [[ $target_mimetype == 'inode/symlink' ]] && \
+ IFS=';' read target_mimetype_true _ <<< $( file -ibL "$target" )
set -- "${mime_handlers[@]}"
elif is_uri "$target"; then