Make locale setting OS-dependent

Signed-off-by: Balasankar "Balu" C <balasankar@gitlab.com>
This commit is contained in:
Balasankar "Balu" C 2022-07-05 15:24:53 +05:30
parent 475f5af390
commit a19885da57
No known key found for this signature in database
GPG key ID: B77D2E2E23735427
2 changed files with 11 additions and 1 deletions

10
scripts/generate-locale Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
set -xeou pipefail
BUILD_OS=${BUILD_OS:-debian}
# For UBI, the locale is already present in the image.
if [[ $BUILD_OS =~ debian ]]; then
locale-gen C.UTF-8
fi