diff --git a/lynis b/lynis index 9fa9e08b..99dfb04b 100755 --- a/lynis +++ b/lynis @@ -836,7 +836,11 @@ logtext "================================================================================" # Clean exit (Delete PID file) - ExitClean + if [ ${TOTAL_WARNINGS} -gt 0 ]; then + ExitCustom 78 + else + ExitClean + fi # The End