Merge pull request #1069 from Srgk/master

fix trailing dot quotes
This commit is contained in:
System Void 2017-02-11 17:53:34 +00:00 committed by GitHub
commit b87246dad0

View file

@ -39,7 +39,7 @@ fi
# Add trailing dot at the end of NS/CNAME/MX/PTR/SRV record # Add trailing dot at the end of NS/CNAME/MX/PTR/SRV record
if [[ $rtype =~ NS|CNAME|MX|PTR|SRV ]]; then if [[ $rtype =~ NS|CNAME|MX|PTR|SRV ]]; then
trailing_dot=$(echo $dvalue | grep "\.$") trailing_dot=$(echo $dvalue | grep "\.$")
if [ -z $trailing_dot ]; then if [ -z "$trailing_dot" ]; then
dvalue="$dvalue." dvalue="$dvalue."
fi fi
fi fi