mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-25 14:54:32 +02:00
Allow colored output to be configured from profile
This commit is contained in:
parent
97d018f62d
commit
8d6bc1ad21
@ -27,6 +27,9 @@
|
|||||||
#
|
#
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
|
||||||
|
# Use colored output
|
||||||
|
colors=yes
|
||||||
|
|
||||||
# Compressed uploads (set to zero when errors with uploading occur)
|
# Compressed uploads (set to zero when errors with uploading occur)
|
||||||
compressed-uploads=yes
|
compressed-uploads=yes
|
||||||
|
|
||||||
|
@ -65,6 +65,17 @@
|
|||||||
CHECK_VALUE_ARRAY="${CHECK_OPTION_ARRAY} ${STRING}"
|
CHECK_VALUE_ARRAY="${CHECK_OPTION_ARRAY} ${STRING}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
# Colored output
|
||||||
|
colors)
|
||||||
|
# Quick mode (SKIP_PLUGINS) might already be set outside profile, so store in different variable
|
||||||
|
SETTING_COLORS=1 # default is yes
|
||||||
|
FIND=$(echo "${VALUE}" | egrep "^(0|false|no)$") && COLORS=0
|
||||||
|
if [ ! -z "${FIND}" ]; then SETTING_COLORS=0; RemoveColors; fi
|
||||||
|
Debug "Colors set to ${SETTING_COLORS}"
|
||||||
|
AddSetting "colors" "${SETTING_COLORS}" "Colored screen output"
|
||||||
|
unset SETTING_COLORS
|
||||||
|
;;
|
||||||
|
|
||||||
# Ignore configuration data
|
# Ignore configuration data
|
||||||
config-data)
|
config-data)
|
||||||
Debug "Ignoring configuration option, as it will be used by a specific test"
|
Debug "Ignoring configuration option, as it will be used by a specific test"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user