Test domain gets modified

This commit is contained in:
Bob Mottram 2016-12-21 21:55:50 +00:00
parent cf4e137c25
commit d24d6ba000
1 changed files with 7 additions and 5 deletions

View File

@ -165,11 +165,13 @@ function nginx_keybase {
function test_domain_name { function test_domain_name {
if [ $1 ]; then if [ $1 ]; then
TEST_DOMAIN_NAME=$1 TEST_DOMAIN_NAME=$1
function_check validate_domain_name if [[ $TEST_DOMAIN_NAME != 'ttrss' ]]; then
validate_domain_name function_check validate_domain_name
if [[ $TEST_DOMAIN_NAME != $1 && $TEST_DOMAIN_NAME != 'ttrss' ]]; then validate_domain_name
echo $"Invalid domain name $TEST_DOMAIN_NAME" if [[ $TEST_DOMAIN_NAME != $1 ]]; then
exit 8528 echo $"Invalid domain name $TEST_DOMAIN_NAME"
exit 8528
fi
fi fi
fi fi
} }