mirror of https://github.com/CISOfy/lynis.git
Add DisplayError for showing errors on screen
This commit is contained in:
parent
65eaeb7ce9
commit
9a2dcc9dec
|
@ -38,6 +38,7 @@
|
||||||
# DirectoryExists Check if a directory exists on the disk
|
# DirectoryExists Check if a directory exists on the disk
|
||||||
# DiscoverProfiles Determine available profiles on system
|
# DiscoverProfiles Determine available profiles on system
|
||||||
# Display Output text to screen with colors and identation
|
# Display Output text to screen with colors and identation
|
||||||
|
# DisplayError Show an error on screen
|
||||||
# DisplayManual Output text to screen without any layout
|
# DisplayManual Output text to screen without any layout
|
||||||
# DisplayToolTip Show a tip for improving usage of the tool
|
# DisplayToolTip Show a tip for improving usage of the tool
|
||||||
# ExitClean Stop the program (cleanly), with exit code 0
|
# ExitClean Stop the program (cleanly), with exit code 0
|
||||||
|
@ -525,6 +526,20 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# Name : DisplayError()
|
||||||
|
# Description : Show error on screen
|
||||||
|
#
|
||||||
|
# Input : $1 = text (string)
|
||||||
|
# Returns : <nothing>
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
DisplayError() {
|
||||||
|
${ECHOCMD} "${WARNING}Error${NORMAL}: ${BOLD}$1${NORMAL}"
|
||||||
|
${ECHOCMD} ""
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Name : DisplayManual()
|
# Name : DisplayManual()
|
||||||
# Description : Show text on screen, without any markup
|
# Description : Show text on screen, without any markup
|
||||||
|
|
Loading…
Reference in New Issue