--- functions.sh.old 2003-06-09 02:28:24.000000000 +0100 +++ functions.sh 2003-06-09 02:28:28.000000000 +0100 @@ -89,16 +89,24 @@ then return else - echo -e " ${GOOD}*${NORMAL} ${*}..." + eecho -e " ${GOOD}*${NORMAL} ${*}..." + fi +} + +eecho() { + echo $* + if [ -n "${MSG_FILE}" ] + then + echo $* >> ${MSG_FILE} fi } ewarn() { if [ "${QUIET_STDOUT}" = "yes" ] then - echo " ${*}" + eecho " ${*}" else - echo -e " ${WARN}*${NORMAL} ${*}" + eecho -e " ${WARN}*${NORMAL} ${*}" fi # Log warnings to system log @@ -110,7 +118,7 @@ then echo " ${*}" >/dev/stderr else - echo -e " ${BAD}*${NORMAL} ${*}" + eecho -e " ${BAD}*${NORMAL} ${*}" fi # Log errors to system log @@ -122,7 +130,7 @@ then return else - echo -e " ${GOOD}*${NORMAL} ${*}" + eecho -e " ${GOOD}*${NORMAL} ${*}" fi } @@ -131,7 +139,7 @@ then return else - echo -ne " ${GOOD}*${NORMAL} ${*}" + eecho -ne " ${GOOD}*${NORMAL} ${*}" fi }