diff options
author | hut <hut@lepus.uberspace.de> | 2015-10-15 11:42:54 +0200 |
---|---|---|
committer | hut <hut@lepus.uberspace.de> | 2015-10-15 11:42:54 +0200 |
commit | ea23cce2af8f9540faac47fc0244337ae9596ba4 (patch) | |
tree | 221266a56911ef5e94f3f27f8554cb17430bb1be | |
parent | c7d5b898a8cc2eafe836b88971e02c70b657c20a (diff) | |
parent | 607d3569612a0dd518ab2e410bd17d2b296fe027 (diff) | |
download | ranger-ea23cce2af8f9540faac47fc0244337ae9596ba4.tar.gz |
Merge branch 'scope' of https://github.com/Ambrevar/ranger
-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 19404019..1b4a7b64 100755 --- a/ranger/data/scope.sh +++ b/ranger/data/scope.sh @@ -30,7 +30,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=$(/bin/echo "${path##*.}" | tr "[:upper:]" "[:lower:]") +extension=$(/bin/echo "${path##*.}" | awk '{print tolower($0)}') # Functions: # runs a command and saves its output into $output. Useful if you need |