- LANG=$(grep "^${locale}" /root/usr/share/i18n/SUPPORTED | grep UTF-8 |sed -e 's, .*,,' -e q)
- printf 'LANG="%s"\n' "${LANG}" >> "${grep_file}"
- if [ "${BUILD_SYSTEM}" == "Debian" ]; then
- chroot /root /usr/sbin/locale-gen
- else
- chroot /root /usr/sbin/locale-gen "${LANG}"
- fi
+ LANG=$(grep "^${locale}" /root/usr/share/i18n/SUPPORTED | grep UTF-8 |sed -e 's, .*,,' -e q)
+ printf 'LANG="%s"\n' "${LANG}" >> "${grep_file}"
+ if [ "${BUILD_SYSTEM}" == "Debian" ]; then
+ chroot /root /usr/sbin/locale-gen
+ else
+ chroot /root /usr/sbin/locale-gen "${LANG}"
+ fi