From ca2d3a192cbefda4b5d50ab38f06cf64d63e25b4 Mon Sep 17 00:00:00 2001 From: Promofaux Date: Sun, 21 Feb 2016 18:38:34 +0000 Subject: [PATCH] add double bracket notation to lines 396, 399, 403 . Fixes error raised by @jacobsalmela --- automated install/basic-install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index e6deca29..c20308ab 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -393,14 +393,14 @@ setDNS(){ exit 1 fi - if [ $piholeDNS1 == $strInvalid ] || [ $piholeDNS2 == $strInvalid ]; then + if [[ $piholeDNS1 == $strInvalid ]] || [[ $piholeDNS2 == $strInvalid ]]; then whiptail --msgbox --backtitle "Invalid IP" --title "Invalid IP" "One or both entered IP addresses were invalid. Please try again.\n\n DNS Server 1: $piholeDNS1\n DNS Server 2: $piholeDNS2" $r $c - if [ $piholeDNS1 == $strInvalid ]; then + if [[ $piholeDNS1 == $strInvalid ]]; then piholeDNS1="" fi - if [ $piholeDNS2 == $strInvalid ]; then + if [[ $piholeDNS2 == $strInvalid ]]; then piholeDNS2="" fi