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:
Diffstat (limited to 'include/functions')
-rw-r--r--include/functions5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/functions b/include/functions
index 951ebae7..e4776ed8 100644
--- a/include/functions
+++ b/include/functions
@@ -2994,7 +2994,6 @@
ViewCategories() {
for CATEGORY in ${TEST_AVAILABLE_CATEGORIES}; do echo "${CATEGORY}"; done
- echo ""
ExitClean
}
@@ -3009,13 +3008,11 @@
################################################################################
ViewGroups() {
- if [ ! "${INCLUDEDIR}" = "" ]; then
- InsertSection "Available test groups"
+ if [ ! -z "${INCLUDEDIR}" ]; then
for I in $(ls ${INCLUDEDIR}/tests_* | xargs -n 1 basename | sed 's/tests_//' | grep -v "custom.template"); do
echo "${I}"
done
fi
- echo ""
ExitClean
}