From fb039564d915f838aa521d313a0f6483e347823c Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 11 Feb 2024 08:30:39 -0600 Subject: [PATCH] Update power.inc.sh --- inc/power.inc.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/power.inc.sh b/inc/power.inc.sh index a3a77528..2ee19924 100644 --- a/inc/power.inc.sh +++ b/inc/power.inc.sh @@ -90,7 +90,8 @@ CHECKPOWER(){ if ([ "${STYPE}" = "" ] || [ "${STYPE}" = "mainsite" ]) && [ "${PTYPE}" != "esxi" ]; then [ ${REPORT} -eq 0 ] && echo [ ${REPORT} -eq 0 ] && DIVIDER . yellow ${PRI_WIDTH} - echo -e "${idsCL[Yellow]}Mainsite Power Information ${idsCL[LightYellow]}${avgdays_disp}-AVG" + echo -en "${idsCL[Yellow]}Mainsite Power Information" + [ "${avgdays}" != "" ] && echo -e " ${idsCL[LightYellow]}${avgdays_disp}-AVG" || echo DIVIDER . yellow ${PRI_WIDTH} [ ${REPORT} -eq 0 ] && echo -en "${idsCL[Yellow]}Pulling data from 'Powerwall' ... "