Update powerwall.sh

This commit is contained in:
2023-05-14 20:13:07 -05:00
parent 28405e38c5
commit 3a1d09ccfe

View File

@@ -24,7 +24,7 @@ CHECKTEMP(){
# echo -e "${idsCL[LightCyan]}${1}${spc}${idsCL[Default]}: ${reading}"
for SENSOR in ${!SENSOR_ID[@]}; do
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}"