From d52fdde2f8462ebca8f79610f7ee4fb2ae12342d Mon Sep 17 00:00:00 2001 From: Jacob Salmela Date: Sat, 3 Oct 2015 11:06:50 -0500 Subject: [PATCH] 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. --- gravity.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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