From cb53616e999775f131ff12f1c21a41571663469f Mon Sep 17 00:00:00 2001 From: Serge Kraev Date: Thu, 9 Feb 2017 18:09:39 +0400 Subject: [PATCH] fix trailing dot quotes --- bin/v-add-dns-record | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/v-add-dns-record b/bin/v-add-dns-record index 3b6e6e95..ec98fd72 100755 --- a/bin/v-add-dns-record +++ b/bin/v-add-dns-record @@ -39,7 +39,7 @@ fi # Add trailing dot at the end of NS/CNAME/MX/PTR/SRV record if [[ $rtype =~ NS|CNAME|MX|PTR|SRV ]]; then trailing_dot=$(echo $dvalue | grep "\.$") - if [ -z $trailing_dot ]; then + if [ -z "$trailing_dot" ]; then dvalue="$dvalue." fi fi