From 1823bf10400843abf280766deb639f1fff4b9808 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Tue, 20 Aug 2019 14:22:36 +0200 Subject: Set default language if locale command does not exist --- lynis | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lynis') 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 -- cgit v1.2.3