mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-01-23 12:59:47 +00:00
add double bracket notation to lines 396, 399, 403 . Fixes error raised by @jacobsalmela
This commit is contained in:
parent
0ebb7eecdb
commit
ca2d3a192c
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue