diff options
author | hut <hut@lavabit.com> | 2013-06-16 18:20:26 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2013-06-16 18:23:13 +0200 |
commit | c0b14f2b6e025c1cf22dfe9f4c7718d5beace6df (patch) | |
tree | 7741172cde9854fea19bf6102f668abb96382d68 | |
parent | 329fd725230a5618be01414d51e7684e07a49680 (diff) | |
download | ranger-c0b14f2b6e025c1cf22dfe9f4c7718d5beace6df.tar.gz |
data/scope.sh: fix extension matching on uppercase extension
Thanks to niku for the patch.
-rwxr-xr-x | ranger/data/scope.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh index ce113a9e..76481f94 100755 --- a/ranger/data/scope.sh +++ b/ranger/data/scope.sh @@ -26,7 +26,7 @@ maxln=200 # Stop after $maxln lines. Can be used like ls | head -n $maxln # Find out something about the file: mimetype=$(file --mime-type -Lb "$path") -extension=${path##*.} +extension=$(echo "${path##*.}" | tr "[:upper:]" "[:lower:]") # Functions: # runs a command and saves its output into $output. Useful if you need |