mirror of https://github.com/CISOfy/lynis.git
Exit with code 78 when warnings were found
This commit is contained in:
parent
0db8eca467
commit
04b2a900c1
6
lynis
6
lynis
|
@ -836,7 +836,11 @@
|
||||||
logtext "================================================================================"
|
logtext "================================================================================"
|
||||||
|
|
||||||
# Clean exit (Delete PID file)
|
# Clean exit (Delete PID file)
|
||||||
ExitClean
|
if [ ${TOTAL_WARNINGS} -gt 0 ]; then
|
||||||
|
ExitCustom 78
|
||||||
|
else
|
||||||
|
ExitClean
|
||||||
|
fi
|
||||||
|
|
||||||
# The End
|
# The End
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue