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
path: root/lynis
diff options
context:
space:
mode:
authormboelen <michael@cisofy.com>2015-09-10 10:18:41 +0300
committermboelen <michael@cisofy.com>2015-09-10 10:18:41 +0300
commit04b2a900c174d95e0e8144a6b96d7602230395e3 (patch)
treea7b87039d8c5d85033b312cab2f1e6dd1566ad26 /lynis
parent0db8eca467b7f70dbe3c23d48e6741ec44d39049 (diff)
Exit with code 78 when warnings were found
Diffstat (limited to 'lynis')
-rwxr-xr-xlynis6
1 files changed, 5 insertions, 1 deletions
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