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
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2016-07-11 21:06:46 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-07-11 21:06:46 +0300
commitc090e73ca139398e254f18a1365f69cab3945cf9 (patch)
tree46c9449b63c1c7a7eef9d131766d905ee399dd98
parent38e6ff18d45081ef6d9185802a6db8656779a412 (diff)
Add blue colors for tips
-rw-r--r--include/consts3
-rw-r--r--include/functions4
-rw-r--r--include/parameters2
3 files changed, 7 insertions, 2 deletions
diff --git a/include/consts b/include/consts
index 37943017..c8d17e1b 100644
--- a/include/consts
+++ b/include/consts
@@ -253,12 +253,15 @@ unset LANG
DARKGRAY=""
GRAY=""
GREEN=""
+ LIGHTBLUE=""
MAGENTA=""
PURPLE=""
RED=""
YELLOW=""
WHITE=""
+ # With background
+ BG_BLUE=""
#
#################################################################################
#
diff --git a/include/functions b/include/functions
index 080e3523..dfa71ce1 100644
--- a/include/functions
+++ b/include/functions
@@ -553,7 +553,9 @@
if [ ${CRONJOB} -eq 0 ]; then
# Check if we already have already discovered a proper echo command tool. It not, set it default to 'echo'.
if [ "${ECHOCMD}" = "" ]; then ECHOCMD="echo"; fi
- ${ECHOCMD} "${WHITE}[${BLUE}TIP${NORMAL}${WHITE}]${NORMAL}: $1"
+ printf "\n"
+ ${ECHOCMD} " ${BG_BLUE}[TIP]${NORMAL}: ${LIGHTBLUE}$1${NORMAL}"
+ printf "\n"
else
echo "${TEXT}${RESULTPART}"
fi
diff --git a/include/parameters b/include/parameters
index 032c8f55..5fcb7b0c 100644
--- a/include/parameters
+++ b/include/parameters
@@ -236,7 +236,7 @@
# Don't use colors
--no-colors | --nocolors)
COLORS=0
- NORMAL=""; WARNING=""; SECTION=""; NOTICE=""; OK=""; BAD=""; BLUE=""; CYAN=""; MAGENTA=""; PURPLE=""; YELLOW=""; WHITE=""; GREEN=""; RED=""
+ BG_BLUE=""; NORMAL=""; WARNING=""; SECTION=""; NOTICE=""; OK=""; BAD=""; BLUE=""; CYAN=""; LIGHTBLUE=""; MAGENTA=""; PURPLE=""; YELLOW=""; WHITE=""; GREEN=""; RED=""
;;
# Disable logging