From c1149a01104a96f7a3e19eed151bc6d7b9501004 Mon Sep 17 00:00:00 2001 From: s2 Date: Fri, 13 Oct 2017 18:03:18 +0200 Subject: [PATCH] fix a problem when strings are null --- isphonehere.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;