V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 49s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 49s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -67,10 +67,6 @@ set -x
|
||||
exec 2>/tmp/locale-hook-debug.log
|
||||
set -Ceuo pipefail
|
||||
|
||||
if [[ ! -d /usr/share/i18n/locales ]]; then
|
||||
echo "ERROR: Directory /usr/share/i18n/locales missing. Is package 'locales' installed?" >&2
|
||||
fi
|
||||
|
||||
echo "locales locales/locales_to_be_generated multiselect ${locale_locale:-en_US.UTF-8} UTF-8" | debconf-set-selections
|
||||
echo "locales locales/default_environment_locale select ${locale_locale:-en_US.UTF-8}" | debconf-set-selections
|
||||
|
||||
@@ -81,11 +77,6 @@ fi
|
||||
|
||||
locale-gen --purge "${locale_locale:-en_US.UTF-8}"
|
||||
|
||||
if ! (locale -a | grep -qx "${locale_locale:-en_US.UTF-8}"); then
|
||||
echo "ERROR: Locale '${locale_locale:-en_US.UTF-8}' was not generated successfully." >&2
|
||||
locale -a >&2
|
||||
fi
|
||||
|
||||
update-locale \
|
||||
LANG=${locale_locale} \
|
||||
LC_ADDRESS=${locale_override_address:-${locale_locale}} \
|
||||
@@ -99,8 +90,7 @@ LC_NUMERIC=${locale_override_numeric:-${locale_locale}} \
|
||||
LC_PAPER=${locale_override_paper:-${locale_locale}} \
|
||||
LC_TELEPHONE=${locale_override_telephone:-${locale_locale}} \
|
||||
LC_TIME=${locale_override_time:-${locale_locale}} \
|
||||
LC_IDENTIFICATION=${locale_locale} \
|
||||
LC_ALL=
|
||||
LC_IDENTIFICATION=${locale_locale}
|
||||
|
||||
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user