diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 49610bc1..8ae7432c 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -734,7 +734,7 @@ CHECKTEMPSENSOR(){ temp_c='' fi - elif [ "${PW_SENSOR_TYPE[${1}]}" == "system" ] || "${PW_SENSOR_TYPE[${1}]}" == "remotesystem" ]; then + elif [ "${PW_SENSOR_TYPE[${1}]}" == "system" ] || [ "${PW_SENSOR_TYPE[${1}]}" == "remotesystem" ]; then if [[ "${1}" = *"CPU"* ]]; then if ! temp_c=$(${SSHCMD} root@${PW_REMOTE_SENSORS[${1}]} vcgencmd measure_temp) ; then TIMEOUT=1; fi if [ "${temp_c}" != "" ]; then