mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-08 15:10:55 +00:00
using double bracket notation
Despite the script running successfully, it produced this error: `/usr/local/bin/gravity.sh: line 8: [: missing `]'` prior to this fix.
This commit is contained in:
parent
533f707578
commit
d52fdde2f8
@ -5,7 +5,7 @@
|
|||||||
# This script should only be run after you have a static IP address set on the Pi
|
# This script should only be run after you have a static IP address set on the Pi
|
||||||
piholeIP="$1"
|
piholeIP="$1"
|
||||||
|
|
||||||
if [ -n "$piholeIP"]; then
|
if [[ -n "$piholeIP" ]]; then
|
||||||
piholeIP=$(hostname -I|xargs)
|
piholeIP=$(hostname -I|xargs)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user