Update powerwall.sh
This commit is contained in:
@@ -24,7 +24,7 @@ CHECKTEMP(){
|
||||
# echo -e "${idsCL[LightCyan]}${1}${spc}${idsCL[Default]}: ${reading}"
|
||||
|
||||
for SENSOR in ${!SENSOR_ID[@]}; do
|
||||
if [[ "${SENSOR}" =~ *"${1}"* ]]; then
|
||||
shopt -s nocasematch; 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}"
|
||||
|
||||
Reference in New Issue
Block a user