diff --git a/include/functions b/include/functions index 7248a71d..495f084e 100644 --- a/include/functions +++ b/include/functions @@ -580,14 +580,14 @@ DisplayToolTip() { # Display tooltip when enabled and no tip has been displayed yet if [ ${SHOW_TOOL_TIPS} -eq 1 -a ${TOOLTIP_SHOWED} -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 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 printf "\n" ${ECHOCMD} " ${BG_BLUE}[TIP]${NORMAL}: ${LIGHTBLUE}$1${NORMAL}" printf "\n" else - echo "${TEXT}${RESULTPART}" + ${ECHOCMD} " [TIP]: $1" fi TOOLTIP_SHOWED=1 fi