fix a problem when strings are null

This commit is contained in:
s2
2017-10-13 18:03:18 +02:00
parent 68a17d41af
commit c1149a0110

View File

@@ -76,7 +76,7 @@ while true; do
if [ -n "$found_mac" ]; then
echo "phone is in da house"
if [ $currentstate != $zm_here_state ]; then
if [ "$currentstate" != "$zm_here_state" ]; then
echo "setting state to $zm_here_state"
sethere
fi;