diff --git a/gravity.sh b/gravity.sh index ba1ac671..d548d13e 100755 --- a/gravity.sh +++ b/gravity.sh @@ -5,7 +5,7 @@ # This script should only be run after you have a static IP address set on the Pi piholeIP="$1" -if [ -n "$piholeIP"]; then +if [[ -n "$piholeIP" ]]; then piholeIP=$(hostname -I|xargs) fi