Update powerwall.sh

This commit is contained in:
2023-05-14 20:16:48 -05:00
parent 6b4671bf93
commit fc35b101b4

View File

@@ -24,7 +24,7 @@ CHECKTEMP(){
# echo -e "${idsCL[LightCyan]}${1}${spc}${idsCL[Default]}: ${reading}"
for SENSOR in ${!SENSOR_ID[@]}; do
shopt -s nocasematch; if [[ "${SENSOR}" =~ *"${1}"* ]]; then
if [[ "${SENSOR}" = *"${1}"* ]]; then
reading=$(CHECKTEMPSENSOR ${SENSOR})
c=0; spc=''; spc1=`expr ${cw} - ${#SENSOR}`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
echo -e "${idsCL[LightCyan]}${SENSOR}${spc}${idsCL[Default]}: ${reading}"