Skip to content

Commit

Permalink
Improve check_conf.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
roleoroleo committed Jun 8, 2023
1 parent b03b635 commit 82af8a7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ HOMEASSISTANT_QOS=0
for i in $PARMS1; do
if [ ! -z "$i" ]; then
PAR=$(echo "$i" | cut -d= -f1)
MATCH=$(cat $CONF_MQTT_ADVERTISE_FILE | grep $PAR)
MATCH=$(cat $CONF_MQTT_ADVERTISE_FILE | grep ^$PAR=)
if [ -z "$MATCH" ]; then
echo "$i" >>$CONF_MQTT_ADVERTISE_FILE
fi
Expand Down

0 comments on commit 82af8a7

Please sign in to comment.