From 0e32948012f1c4311766bbec70fd57224bfa2a41 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 26 Dec 2023 17:23:53 -0600 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 8a1f266d..45e32c4b 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -74,7 +74,7 @@ CHECKTEMP(){ fi if [ "${PW_SENSOR_TYPE[${SENSOR}]}" != "esxi" ] && [ "${temptype}" != "esxi" ]; then - [ "${last_sensor}" != "" ] && [ "${last_sensor}" == "${SENSOR}" ] && echo -en "\033[1A" + [ "${last_sensor}" != "" ] && [ "${last_sensor}" == "${SENSOR%%-*}" ] && echo -en "\033[1A" c=0; spc=''; spc1=`expr ${cw} - ${#SENSOR}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done if [ ! -f ${PW_TMPFOLDER}/${SENSOR}.down ]; then echo -en "\r\033[K${idsCL[White]}${idsST[Bold]}${SENSOR}${idsST[Reset]}${spc}${idsCL[Default]}: ${idsCL[Yellow]}" @@ -85,7 +85,7 @@ CHECKTEMP(){ echo -e "\r\033[K${idsCL[White]}${idsST[Bold]}${SENSOR}${idsST[Reset]}${spc}${idsCL[Default]}: ${idsCL[Yellow]}Sensor Offline${idsCL[Default]}" fi echo - last_sensor=${SENSOR} + last_sensor=${SENSOR%%-*} fi fi done