Update temp.inc.sh

This commit is contained in:
2023-12-26 17:23:53 -06:00
parent a46da49372
commit 0e32948012

View File

@@ -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