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
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2016-07-12 21:32:15 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-07-12 21:32:15 +0300
commit07a113e46ec10a93aa86bac680ab95a5e539840c (patch)
tree2072be166a3723772487f5614b804b877cd1e464 /include
parentcb76421d9c462947006ec3d6f15fbb29c5c45b84 (diff)
Set initial value for language and improve auto detection
Diffstat (limited to 'include')
-rw-r--r--include/profiles4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/profiles b/include/profiles
index 89bd26a5..e0182f03 100644
--- a/include/profiles
+++ b/include/profiles
@@ -139,7 +139,9 @@
# Language
language | lang)
LogText "Language set via profile to ${VALUE}"
- LANGUAGE="${VALUE}"
+ if [ ! -z "${VALUE}" ]; then
+ LANGUAGE="${VALUE}"
+ fi
AddSetting "language" "${LANGUAGE}" "Language"
;;