mirror of https://github.com/CISOfy/lynis.git
Exit cleanly when displaying categories
This commit is contained in:
parent
df9443d04d
commit
f9011c43e6
|
@ -2482,11 +2482,11 @@
|
||||||
if [ ! "${INCLUDEDIR}" = "" ]; then
|
if [ ! "${INCLUDEDIR}" = "" ]; then
|
||||||
InsertSection "Available test categories"
|
InsertSection "Available test categories"
|
||||||
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 ""
|
echo ""
|
||||||
exit 0
|
ExitClean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue