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:
authormboelen <michael@cisofy.com>2016-04-25 12:51:37 +0300
committermboelen <michael@cisofy.com>2016-04-25 12:51:37 +0300
commitc02ab08b50ce71fbcd503b6b472574f4d9bd5dc5 (patch)
tree154a68032614e8f879c96b6fece2777bc05ee9e6 /include/functions
parentbedadd9cd1b6031af7c59122f0c41ba579316f2f (diff)
Set quiet and quickmode when using --show-warnings-only or show-warnings-only
Diffstat (limited to 'include/functions')
-rw-r--r--include/functions6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/functions b/include/functions
index 77c4a71d..97b12a91 100644
--- a/include/functions
+++ b/include/functions
@@ -489,8 +489,10 @@
if [ ! "${TEXT}" = "" ]; then
local SHOW=0
- if [ ${QUIET} -eq 0 ]; then SHOW=1; fi
- if [ "${RESULT}" = "WARNING" -a ${SHOW_WARNINGS_ONLY} -eq 1 ]; then SHOW=1; fi
+ if [ ${SHOW_WARNINGS_ONLY} -eq 1 ]; then
+ if [ "${RESULT}" = "WARNING" ]; then SHOW=1; fi
+ elif [ ${QUIET} -eq 0 ]; then SHOW=1
+ fi
if [ ${SHOW} -eq 1 ]; then
# Display (counting with -m instead of -c, to support language locale)