Fix IF check space issue for INFLUX_ENABLED

This commit is contained in:
Sam
2020-12-03 18:14:42 +10:30
committed by GitHub
parent d8349b8574
commit e82000d76f
+1 -1
View File
@@ -17,7 +17,7 @@ pushMQTTData () {
-t "$MQTT_TOPIC/sensor/"$MQTT_DEVICENAME"_$1" \ -t "$MQTT_TOPIC/sensor/"$MQTT_DEVICENAME"_$1" \
-m "$2" -m "$2"
if [[$INFLUX_ENABLED == "true"]] ; then if [[ $INFLUX_ENABLED == "true" ]] ; then
pushInfluxData $1 $2 pushInfluxData $1 $2
fi fi
} }