From d24d6ba0002b60b58c41bf29629e44a7fc6d4c9d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 21 Dec 2016 21:55:50 +0000 Subject: [PATCH] Test domain gets modified --- src/freedombone-utils-web | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/freedombone-utils-web b/src/freedombone-utils-web index 58d50db2..437cb57c 100755 --- a/src/freedombone-utils-web +++ b/src/freedombone-utils-web @@ -165,11 +165,13 @@ function nginx_keybase { function test_domain_name { if [ $1 ]; then TEST_DOMAIN_NAME=$1 - function_check validate_domain_name - validate_domain_name - if [[ $TEST_DOMAIN_NAME != $1 && $TEST_DOMAIN_NAME != 'ttrss' ]]; then - echo $"Invalid domain name $TEST_DOMAIN_NAME" - exit 8528 + if [[ $TEST_DOMAIN_NAME != 'ttrss' ]]; then + function_check validate_domain_name + validate_domain_name + if [[ $TEST_DOMAIN_NAME != $1 ]]; then + echo $"Invalid domain name $TEST_DOMAIN_NAME" + exit 8528 + fi fi fi }