From e8c8392bf9c64627c63ac549c1e10d6795a884a7 Mon Sep 17 00:00:00 2001 From: Eliezer Croitoru Date: Mon, 2 Aug 2021 01:19:59 +0300 Subject: [PATCH] 43 --- cron-example-with-diff-dstdom.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cron-example-with-diff-dstdom.sh b/cron-example-with-diff-dstdom.sh index cb3a38c..2564001 100755 --- a/cron-example-with-diff-dstdom.sh +++ b/cron-example-with-diff-dstdom.sh @@ -76,6 +76,10 @@ function dstdomain_to_regex() { dstdomain="0" dotsuffix="0" + if [ -z "${domain}" ];then + return + fi + echo "${domain}" | grep -e "^\." > /dev/null if [ "$?" -eq "0" ];then dstdomain=1