Set default language if locale command does not exist

This commit is contained in:
Michael Boelen 2019-08-20 14:22:36 +02:00
parent c1c23a4cca
commit 1823bf1040
No known key found for this signature in database
GPG Key ID: 26141F77A09D7F04
1 changed files with 2 additions and 0 deletions

2
lynis
View File

@ -221,6 +221,8 @@
if [ -z "${DISPLAY_LANG}" ]; then
DISPLAY_LANG=$(locale | egrep "^LANG=" | cut -d= -f2)
fi
else
LANGUAGE="en"
fi
# Set default language: 'en' (English) if no value is set