diff --git a/isphonehere.sh b/isphonehere.sh index dc85237..47729e7 100755 --- a/isphonehere.sh +++ b/isphonehere.sh @@ -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;