mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-01-11 14:34:44 +00:00
Removed extra blank space if no IP added
This commit is contained in:
parent
885069d440
commit
4ea397bc71
1 changed files with 3 additions and 3 deletions
|
@ -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…
Reference in a new issue