Update temp.inc.sh

This commit is contained in:
2024-01-30 14:47:55 -06:00
parent 8571a82b8f
commit 97fe868e67

View File

@@ -69,7 +69,7 @@ CHECKTEMP(){
if [ "${search}" == "" ] || [[ "${SENSOR,,}" = *"${search,,}"* ]]; then
if ([ "${PW_SENSOR_TYPE[${SENSOR}]}" == "esxi" ] || [ "${PW_SENSOR_TYPE[${SENSOR}]}" == "fans" ]) && [ "${temptype}" != "sensors" ]; then
if ([ "${PW_SENSOR_TYPE[${SENSOR}]}" == "esxi" ] || [ "${temptype}" == "fans" ]) && [ "${temptype}" != "sensors" ]; then
vHOSTiDRACIP=${PW_HOST_IDRACS[${SENSOR}]}
vHOSTIP=${PW_HOST_ADDRESSES[${SENSOR}]}
vHOSTNAME=${PW_ESXI_HOST_NAMES[${vHOSTiDRACIP}]}
@@ -150,7 +150,7 @@ CHECKTEMP(){
echo
fi
if [ "${PW_SENSOR_TYPE[${SENSOR}]}" != "esxi" ] && [ "${temptype}" != "esxi" ]; then
if [ "${PW_SENSOR_TYPE[${SENSOR}]}" != "esxi" ] && [ "${temptype}" != "esxi" ] && [ "${temptype}" != "fans" ]; then
[ "${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