Only display board temp if available.

This commit is contained in:
Igor Pečovnik 2015-12-26 19:00:57 +01:00
parent 3aaa5e7bce
commit 0746ebc593

View File

@ -46,8 +46,9 @@ TEMP=$(cat /sys/devices/virtual/thermal/thermal_zone0/temp)
TEMP=$(echo "scale=1;${TEMP}/1000" | bc)
fi
if [[ -n $TEMP ]]; then
OUT="${OUT}- Board: ${TEMP}${CEL} "
fi
if [[ -n $TEMPER ]]; then
OUT=$OUT"${TEMPER}${CEL} "