diff options
Diffstat (limited to '.config')
-rw-r--r-- | .config/login.d/01_locale.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.config/login.d/01_locale.sh b/.config/login.d/01_locale.sh index 2e4f3c4..2c205fa 100644 --- a/.config/login.d/01_locale.sh +++ b/.config/login.d/01_locale.sh @@ -1,3 +1,4 @@ -if { [[ $LANG = C ]] || [[ -z $LANG ]]; } && grep '^en_US.UTF-8\s' /etc/locale.gen &>/dev/null; then +#!/hint/sh +if [ "$LANG" = C -o -z "$LANG" ] && grep '^en_US\.UTF-8\s' /etc/locale.gen &>/dev/null; then export LANG=en_US.UTF-8 fi |