mirror of https://github.com/CISOfy/lynis.git
Improve screen output when an error in a profile has been found
This commit is contained in:
parent
573698afdb
commit
933edeeae0
|
@ -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 New Issue