Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lynis
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2019-08-20 15:22:36 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2019-08-20 15:22:36 +0300
commit1823bf10400843abf280766deb639f1fff4b9808 (patch)
tree0b4f7b8d4cc0e0148e4e17da1ce090cb2211c9f5 /lynis
parentc1c23a4cca3116d18e196198176ff9f6b0490a1a (diff)
Set default language if locale command does not exist
Diffstat (limited to 'lynis')
-rwxr-xr-xlynis2
1 files changed, 2 insertions, 0 deletions
diff --git a/lynis b/lynis
index 29c28919..61a15923 100755
--- a/lynis
+++ b/lynis
@@ -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