[LOGG-2180] minor cleanup

This commit is contained in:
Michael Boelen 2019-03-21 09:07:05 +01:00
parent 928023ec6a
commit 943e09db01
No known key found for this signature in database
GPG Key ID: 26141F77A09D7F04
1 changed files with 1 additions and 3 deletions

View File

@ -465,13 +465,11 @@
FIND=$(${LSOFBINARY} -n 2>&1 | ${GREPBINARY} "log$" | ${EGREPBINARY} -v "WARNING|Output information" | ${AWKBINARY} '{ if ($5=="REG") { print $9 } }' | ${SORTBINARY} -u | ${GREPBINARY} -v "^$")
for I in ${FIND}; do
LogText "Found logfile: ${I}"
Report "open_logfile[]=${I}"
done
Display --indent 2 --text "- Checking open log files" --result "${STATUS_DONE}" --color GREEN
else
LogText "Result: lsof not installed, skipping test"
Display --indent 2 --text "- Checking open log files" --result "${STATUS_SKIPPED}" --color YELLOW
# Add suggestion
Display --indent 2 --text "- Checking open log files" --result "${STATUS_SKIPPED}" --color WHITE
fi
fi
#