summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorToon Nolten <toonn@toonn.io>2018-02-17 15:58:39 +0100
committerGitHub <noreply@github.com>2018-02-17 15:58:39 +0100
commitaf0ef6a233744121307fba3b11089f05e9369782 (patch)
tree3a5e089a1d7e36b6b367fad0f2ac3b67c3fb2549
parent324e5af2e7ec0a825305dc6a03c95efa3682869a (diff)
parentc0a0e90e405bac4dfc5819df429d567e8a51650d (diff)
downloadranger-af0ef6a233744121307fba3b11089f05e9369782.tar.gz
Merge pull request #1078 from toonn/scopebash3
Make scope.sh backwards compatible with bash v3
-rwxr-xr-xranger/data/scope.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh
index 35021129..540a910e 100755
--- a/ranger/data/scope.sh
+++ b/ranger/data/scope.sh
@@ -31,7 +31,7 @@ IMAGE_CACHE_PATH="${4}"  # Full path that should be used to cache image preview
 PV_IMAGE_ENABLED="${5}"  # 'True' if image previews are enabled, 'False' otherwise.
 
 FILE_EXTENSION="${FILE_PATH##*.}"
-FILE_EXTENSION_LOWER="${FILE_EXTENSION,,}"
+FILE_EXTENSION_LOWER=$(echo ${FILE_EXTENSION} | tr '[:upper:]' '[:lower:]')
 
 # Settings
 HIGHLIGHT_SIZE_MAX=262143  # 256KiB