From 87658c3a53c628993dc0083193be542d385dac64 Mon Sep 17 00:00:00 2001 From: yafen Date: Fri, 2 Sep 2022 23:04:17 +0800 Subject: [PATCH] set LANG --- scripts/config/chroot.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/config/chroot.sh b/scripts/config/chroot.sh index d11fa13..9533fd7 100755 --- a/scripts/config/chroot.sh +++ b/scripts/config/chroot.sh @@ -31,9 +31,11 @@ chkconfig --add extend-root.sh chkconfig extend-root.sh on cd - ln -s /lib/firmware /etc/firmware +if [ -f /etc/locale.conf ]; then + sed -i -e "s/^LANG/#LANG/" /etc/locale.conf +fi if [ "x$1" == "xxfce" ] || [ "x$1" == "xukui" ] || [ "x$1" == "xdde" ]; then - if [ -f /etc/locale.conf ]; then - sed -i -e "s/^LANG/#LANG/" /etc/locale.conf - fi echo 'LANG="zh_CN.UTF-8"' >> /etc/locale.conf +else + echo 'LANG="en_US.utf8"' >> /etc/locale.conf fi -- Gitee