From 639c5adc72900012d1804c745c17f329b305012c Mon Sep 17 00:00:00 2001 From: alobodzinski Date: Mon, 29 Aug 2016 19:31:06 +0200 Subject: [PATCH] Fixed cut-and-paste error (#265) --- include/functions | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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