From bec12cb5c106518a66f54add4a4215810e8bd605 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Tue, 15 Jun 2021 11:58:26 +0800 Subject: [PATCH] [feature] check LANG before hand --- cli/ranger.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cli/ranger.sh b/cli/ranger.sh index 1bf53f1..cacdfce 100755 --- a/cli/ranger.sh +++ b/cli/ranger.sh @@ -9,6 +9,11 @@ if ! has_cmd python; then fi log 'Setting up ranger' +if [ "$LANG" != "en_US.UTF-8" ] ; then + echo "please set LANG to en_US.UTF-8 for ranger to work properly" + exit 1 +fi + # install ranger case "$PM" in apt)