mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-26 23:34:25 +02:00
Minor cleanups
This commit is contained in:
parent
67f9d25461
commit
91c6314a1a
@ -2994,7 +2994,6 @@
|
|||||||
|
|
||||||
ViewCategories() {
|
ViewCategories() {
|
||||||
for CATEGORY in ${TEST_AVAILABLE_CATEGORIES}; do echo "${CATEGORY}"; done
|
for CATEGORY in ${TEST_AVAILABLE_CATEGORIES}; do echo "${CATEGORY}"; done
|
||||||
echo ""
|
|
||||||
ExitClean
|
ExitClean
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3009,13 +3008,11 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
ViewGroups() {
|
ViewGroups() {
|
||||||
if [ ! "${INCLUDEDIR}" = "" ]; then
|
if [ ! -z "${INCLUDEDIR}" ]; then
|
||||||
InsertSection "Available test groups"
|
|
||||||
for I in $(ls ${INCLUDEDIR}/tests_* | xargs -n 1 basename | sed 's/tests_//' | grep -v "custom.template"); do
|
for I in $(ls ${INCLUDEDIR}/tests_* | xargs -n 1 basename | sed 's/tests_//' | grep -v "custom.template"); do
|
||||||
echo "${I}"
|
echo "${I}"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
echo ""
|
|
||||||
ExitClean
|
ExitClean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -218,7 +218,7 @@ if [ $# -gt 0 ]; then
|
|||||||
"details")
|
"details")
|
||||||
if [ -z "${LOGFILE}" ]; then DisplayError "Could not find log file to parse"; fi
|
if [ -z "${LOGFILE}" ]; then DisplayError "Could not find log file to parse"; fi
|
||||||
if [ $# -eq 1 ]; then
|
if [ $# -eq 1 ]; then
|
||||||
DisplayError "This command needs a test ID (e.g. CORE-1000) to search for."
|
DisplayError "This command needs a test ID (e.g. CORE-1000) to search for. This command is used after a scan (lynis audit system). Run 'lynis show tests' to see all available tests."
|
||||||
else
|
else
|
||||||
shift
|
shift
|
||||||
if [ $# -eq 1 ]; then
|
if [ $# -eq 1 ]; then
|
||||||
@ -433,8 +433,8 @@ else
|
|||||||
${ECHOCMD} " lynis show ${BROWN}${ITEM}${NORMAL}"
|
${ECHOCMD} " lynis show ${BROWN}${ITEM}${NORMAL}"
|
||||||
done
|
done
|
||||||
${ECHOCMD} "\n"
|
${ECHOCMD} "\n"
|
||||||
|
${ECHOCMD} ""
|
||||||
${ECHOCMD} "Use '$0 show commands show' for extended help about the show command"
|
${ECHOCMD} "Extended help about the show command can be provided with: $0 show commands show"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user