about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorLauri Niskanen <ape@ape3000.com>2017-01-18 09:36:12 +0200
committernfnty <git@nfnty.se>2017-01-23 19:17:22 +0100
commit2d97d36745761a792fa4d8c340255d11503468bd (patch)
tree846ff584a673cd39c22914076d4d3b0043a637da
parent9f5c0d631ba08d2583898c82c05cfdad8fd52dd8 (diff)
downloadranger-2d97d36745761a792fa4d8c340255d11503468bd.tar.gz
data/scope.sh: Use `file` as a fallback
Fixes #770
-rwxr-xr-xranger/data/scope.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh
index a0fb2ec0..9997172a 100755
--- a/ranger/data/scope.sh
+++ b/ranger/data/scope.sh
@@ -118,4 +118,6 @@ case "$mimetype" in
         try mediainfo "$path" && { dump | trim | sed 's/  \+:/: /;';  exit 5; } || exit 1;;
 esac
 
+file -Lb "$path" && exit 5 || exit 1
+
 exit 1