diff --git a/powerwall.sh b/powerwall.sh index 192f8189..d539439c 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -87,7 +87,7 @@ CHECKTEMP(){ # fi fi - elif [ "${temptype}" != "esxi" ]; then + elif [ "${PW_SENSOR_TYPE[${SENSOR}]}" != "esxi" ] && [ "${temptype}" != "esxi" ]; then [[ "${SENSOR}" == *"CPU-Usage"* ]] && echo -en "\033[1A" c=0; spc=''; spc1=`expr ${cw} - ${#SENSOR}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done echo -en "\r\033[K${idsCL[White]}${idsST[Bold]}${SENSOR}${idsST[Reset]}${spc}${idsCL[Default]}: ${idsCL[Yellow]}"