diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2016-08-26 15:05:20 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2016-08-26 15:05:20 +0300 |
commit | fdf3ded89f7a205a69d150f2ba629f68ca46db5f (patch) | |
tree | 506553e28d73f10b15fcef040c521e038d291346 /include/functions | |
parent | 8de53d87beefefca562e083d4b6722020c9c4f64 (diff) |
New command 'lynis show details' to display test details
Diffstat (limited to 'include/functions')
-rw-r--r-- | include/functions | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/functions b/include/functions index b912857d..7248a71d 100644 --- a/include/functions +++ b/include/functions @@ -1469,7 +1469,7 @@ ################################################################################ LogText() { - if [ ! "${LOGFILE}" = "" ]; then CDATE=$(date "+%Y-%m-%d %H:%M:%S"); echo "${CDATE} $1" >> ${LOGFILE}; fi + if [ ! "${LOGFILE}" = "" -a ${LOGTEXT} -eq 1 ]; then CDATE=$(date "+%Y-%m-%d %H:%M:%S"); echo "${CDATE} $1" >> ${LOGFILE}; fi } @@ -1480,7 +1480,7 @@ ################################################################################ LogTextBreak() { - if [ ! "${LOGFILE}" = "" ]; then + if [ ! "${LOGFILE}" = "" -a ${LOGTEXT} -eq 1 ]; then CDATE=$(date "+%Y-%m-%d %H:%M:%S") echo "${CDATE} ===---------------------------------------------------------------===" >> ${LOGFILE} fi |