From 519d731ddd4172ae20e312019ec3e8e1f3521ba3 Mon Sep 17 00:00:00 2001 From: Marcus Hildum Date: Sun, 23 Oct 2016 16:45:51 -0700 Subject: [PATCH] Fix missing newline My mistake --- automated install/basic-install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 7796fb52..dfed93a1 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -469,7 +469,8 @@ setDNS() { exit 1 fi 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 + 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 piholeDNS1="" fi if [[ ${piholeDNS2} == "${strInvalid}" ]]; then