fix a problem when strings are null
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user