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>2020-06-23 11:57:45 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2020-06-23 11:57:45 +0300
commit44fb7efd6475fb149601b3979b80da62ebf58d66 (patch)
tree9c53e2122417c2f4f35a61fcfb376455c969ed66 /lynis
parent8596156ca16e3767638e4307a2dd9274b7a987f6 (diff)
Strip quotes in locale output, e.g. macOS
Diffstat (limited to 'lynis')
-rwxr-xr-xlynis2
1 files changed, 1 insertions, 1 deletions
diff --git a/lynis b/lynis
index 76722baa..492cc2f4 100755
--- a/lynis
+++ b/lynis
@@ -216,7 +216,7 @@
# Extract the short notation of the language (first two characters).
if [ -x "$(command -v locale 2> /dev/null)" ]; then
- LANGUAGE=$(locale | egrep "^LANG=" | cut -d= -f2 | cut -d_ -f1 | egrep "^[a-z]{2}$")
+ LANGUAGE=$(locale | egrep "^LANG=" | cut -d= -f2 | cut -d_ -f1 | tr -d '"' | egrep "^[a-z]{2}$")
# Try locale command if shell variable had no value
if [ -z "${DISPLAY_LANG}" ]; then
DISPLAY_LANG=$(locale | egrep "^LANG=" | cut -d= -f2)