V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 50s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 50s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -69,7 +69,6 @@ set -Ceuo pipefail
|
||||
|
||||
if [[ ! -d /usr/share/i18n/locales ]]; then
|
||||
echo "ERROR: Directory /usr/share/i18n/locales missing. Is package 'locales' installed?" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "locales locales/locales_to_be_generated multiselect ${locale_locale:-en_US.UTF-8} UTF-8" | debconf-set-selections
|
||||
@@ -85,11 +84,9 @@ 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
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
if update-locale \
|
||||
update-locale \
|
||||
LANG=${locale_locale} \
|
||||
LC_ADDRESS=${locale_override_address:-${locale_locale}} \
|
||||
LC_COLLATE=${locale_override_collate:-${locale_locale}} \
|
||||
@@ -103,13 +100,7 @@ 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="" ;then
|
||||
echo "update-locale successful!"
|
||||
sleep 5
|
||||
else
|
||||
echo "update-locale NOT successful!"
|
||||
sleep 60
|
||||
fi
|
||||
LC_ALL=
|
||||
|
||||
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user