Double quotes

This commit is contained in:
Bob Mottram 2016-02-24 09:27:08 +00:00
parent 5cfcbe70a1
commit 2e93641f17
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ function validate_freedns_code {
FREEDNS_MESSAGE=$"Please enter the FreeDNS code for this domain.\n\nThe code can be found by going to https://freedns.afraid.org, selecting 'Dynamic DNS' and then opening 'Wget example'. The code will consist of letters and numbers and be between the ? and = characters." FREEDNS_MESSAGE=$"Please enter the FreeDNS code for this domain.\n\nThe code can be found by going to https://freedns.afraid.org, selecting 'Dynamic DNS' and then opening 'Wget example'. The code will consist of letters and numbers and be between the ? and = characters."
if [[ "$freedns_code" == *"."* || "$freedns_code" == "http"* || "$freedns_code" == *"wget "* || "$freedns_code" == *" "* ]]; then if [[ "$freedns_code" == *"."* || "$freedns_code" == "http"* || "$freedns_code" == *"wget "* || "$freedns_code" == *" "* ]]; then
dialog --title $"Invalid FreeDNS Code" --msgbox $'$FREEDNS_MESSAGE' 10 70 dialog --title $"Invalid FreeDNS Code" --msgbox "$FREEDNS_MESSAGE" 10 70
VALID_CODE= VALID_CODE=
fi fi
if [ ${#freedns_code} -lt 30 ]; then if [ ${#freedns_code} -lt 30 ]; then