Jelajahi Sumber

Merge pull request #1069 from Srgk/master

fix trailing dot quotes
System Void 9 tahun lalu
induk
melakukan
b87246dad0
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      bin/v-add-dns-record

+ 1 - 1
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