Fix 'export LANG=...' > /etc/locale.conf

This commit is contained in:
Augusto Gunsch 2021-08-13 15:10:49 -03:00
parent a2581f7b49
commit cba5e14181
No known key found for this signature in database
GPG Key ID: F7EEFE29825C72DC
1 changed files with 4 additions and 1 deletions

View File

@ -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..."