From cba5e141815e7024e831981a1da05b15b6f31db0 Mon Sep 17 00:00:00 2001 From: Augusto Gunsch Date: Fri, 13 Aug 2021 15:10:49 -0300 Subject: [PATCH] Fix 'export LANG=...' > /etc/locale.conf --- install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 0340466..26c175e 100755 --- a/install.sh +++ b/install.sh @@ -230,7 +230,10 @@ set_locale() { cp -f /usr/lib/locale/locale-archive /mnt/usr/lib/locale/locale-archive cp -f /etc/locale.gen /mnt/etc/locale.gen - echo "export LANG=\"$LOCALE\"" > /mnt/etc/locale.conf + local short_locale + local encoding + read short_locale encoding <<< "$LOCALE" + echo "export LANG=\"$short_locale\"" > /mnt/etc/locale.conf echo "done" echo -n "Setting keyboard layout..."