*Strip double quotes and only add back if value has spaces or semicolon

This commit is contained in:
Derrick Hammer 2016-08-13 17:19:55 -04:00
commit db9be6d244

View file

@ -49,6 +49,12 @@ if [[ $rtype =~ NS|CNAME|MX|PTR|SRV ]]; then
fi fi
fi fi
dvalue=${dvalue//\"/}
if [[ "dvalue" =~ [^\;\s] ]]; then
dvalue='"'"$dvalue"'"'
fi
#----------------------------------------------------------# #----------------------------------------------------------#
# Verifications # # Verifications #