diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2020-06-22 11:25:02 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2020-06-22 11:25:02 +0300 |
commit | 75738ceeab380e852739a9b78e0d907f3e611478 (patch) | |
tree | ffb9dfd170f127800b56f03464be4b51ab234021 | |
parent | 6d6781a2ae9e57624ce834915fec6b040c5e4188 (diff) |
Fix for language detection, unset LANG as right place
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | include/consts | 4 | ||||
-rwxr-xr-x | lynis | 5 |
3 files changed, 6 insertions, 4 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 3baafee1..deaac158 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - BOOT-5122 - Presence check for grub.d added - KRNL-5830 - Improved version detection for non-symlinked kernel - Added Kali Linux +- Fix: language detection - End-of-life database updated - Small code enhancements diff --git a/include/consts b/include/consts index 7968ef1f..1a75ae68 100644 --- a/include/consts +++ b/include/consts @@ -33,10 +33,6 @@ BIN_PATHS="/bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin \ ETC_PATHS="/etc /usr/local/etc" -# Do not use specific language, fall back to default -# Some tools with translated strings are very hard to parse -unset LANG - # ################################################################################# # @@ -241,6 +241,11 @@ echo "Could not find languages directory (file: ${DBDIR}/languages/en)" exit 1 fi + + # Now that we have determined the language, we unset it from shell + # Some tools with translated strings are very hard to parse + unset LANG + # ################################################################################# # |