Update powerwall.sh

This commit is contained in:
2023-12-11 22:40:45 -06:00
parent 1086e97fd2
commit 9c1ec2098d

View File

@@ -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]}"