Removed extra blank space if no IP added

pull/45/head
Jofre Palau 9 years ago
parent 885069d440
commit 4ea397bc71

@ -5,8 +5,8 @@
# This script should only be run after you have a static IP address set on the Pi
piholeIP="$1"
if [[ "$piholeIP" == "" ]]; then
piholeIP=$(hostname -I)
if [ -n "$piholeIP"]; then
piholeIP=$(hostname -I|xargs)
fi

Loading…
Cancel
Save