diff --git a/archfi b/archfi index 2cdea97..8d21942 100644 --- a/archfi +++ b/archfi @@ -105,7 +105,7 @@ chooselanguage(){ fi font= if [ "$(cat /etc/locale.gen | grep ""#${locale}"")" != "" ]; then - sed -i "/${locale}/s/^#//g" /etc/locale.gen + sed -i "/#${locale}/s/^#//g" /etc/locale.gen locale-gen fi export LANG=${locale} @@ -1039,8 +1039,8 @@ archsetlocale(){ echo "LANG=${locale}.UTF-8" > /mnt/etc/locale.conf echo "echo \"LC_COLLATE=C\" >> /mnt/etc/locale.conf" echo "LC_COLLATE=C" >> /mnt/etc/locale.conf - echo "sed -i '/"${locale}".UTF-8/s/^#//g' /mnt/etc/locale.gen" - sed -i '/'${locale}'.UTF-8/s/^#//g' /mnt/etc/locale.gen + echo "sed -i '/#${locale}.UTF-8/s/^#//g' /mnt/etc/locale.gen" + sed -i '/#'${locale}'.UTF-8/s/^#//g' /mnt/etc/locale.gen archchroot setlocale pressanykey fi