From 97fe868e6701edc8e7b438aad55c122dd9473b86 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 30 Jan 2024 14:47:55 -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 161df3bc..754b831f 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -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