mirror of
https://github.com/CISOfy/lynis.git
synced 2026-03-11 08:55:28 +00:00
Improve screen output when an error in a profile has been found
This commit is contained in:
parent
573698afdb
commit
933edeeae0
1 changed files with 4 additions and 2 deletions
|
|
@ -288,8 +288,10 @@
|
|||
# Catch all bad options and bail out
|
||||
*)
|
||||
LogText "Unknown option ${OPTION} (with value: ${VALUE})"
|
||||
echo "Fatal error: found errors in profile ${PROFILE}"
|
||||
echo "Unknown option '${OPTION}' found (with value: ${VALUE})"
|
||||
${ECHOCMD} ""
|
||||
${ECHOCMD} "${RED}Error${NORMAL}: found one or more errors in profile ${PROFILE}"
|
||||
${ECHOCMD} "${WHITE}Details${NORMAL}: Unknown option '${YELLOW}${OPTION}${NORMAL}' found (with value: ${VALUE})"
|
||||
${ECHOCMD} ""
|
||||
ExitFatal
|
||||
;;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue