mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-31 01:34:23 +02:00
Set default language if locale command does not exist
This commit is contained in:
parent
c1c23a4cca
commit
1823bf1040
2
lynis
2
lynis
@ -221,6 +221,8 @@
|
|||||||
if [ -z "${DISPLAY_LANG}" ]; then
|
if [ -z "${DISPLAY_LANG}" ]; then
|
||||||
DISPLAY_LANG=$(locale | egrep "^LANG=" | cut -d= -f2)
|
DISPLAY_LANG=$(locale | egrep "^LANG=" | cut -d= -f2)
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
LANGUAGE="en"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set default language: 'en' (English) if no value is set
|
# Set default language: 'en' (English) if no value is set
|
||||||
|
Loading…
x
Reference in New Issue
Block a user