mirror of
https://github.com/CISOfy/lynis.git
synced 2026-03-11 08:55:28 +00:00
Exit with code 78 when warnings were found
This commit is contained in:
parent
0db8eca467
commit
04b2a900c1
1 changed files with 5 additions and 1 deletions
6
lynis
6
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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue