summaryrefslogtreecommitdiffstats
path: root/bashrc/common/locale.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bashrc/common/locale.sh')
-rw-r--r--bashrc/common/locale.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/bashrc/common/locale.sh b/bashrc/common/locale.sh
index b75b3aa..72c70d3 100644
--- a/bashrc/common/locale.sh
+++ b/bashrc/common/locale.sh
@@ -2,10 +2,10 @@
eval unset ${!LC_*} LANG
-if hash locale 2>&1 >/dev/null ; then
- if locale -a | grep "en_US.UTF-8" 2>&1 >/dev/null ; then
+if hash locale >/dev/null 2>&1 ; then
+ if locale -a | grep "en_US.UTF-8" >/dev/null 2>&1 ; then
export LANG="en_US.UTF-8"
- elif locale -a | grep "en_US.utf8" 2>&1 >/dev/null ; then
+ elif locale -a | grep "en_US.utf8" >/dev/null 2>&1 ; then
export LANG="en_US.utf8"
fi
fi