fix a problem when strings are null
This commit is contained in:
@@ -76,7 +76,7 @@ while true; do
|
|||||||
if [ -n "$found_mac" ]; then
|
if [ -n "$found_mac" ]; then
|
||||||
echo "phone is in da house"
|
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"
|
echo "setting state to $zm_here_state"
|
||||||
sethere
|
sethere
|
||||||
fi;
|
fi;
|
||||||
|
Reference in New Issue
Block a user