Просмотр исходного кода

syntax error in dns record change function. fixes #120

Serghey Rodin 12 лет назад
Родитель
Сommit
04e252d75c
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      bin/v-change-dns-record

+ 1 - 1
bin/v-change-dns-record

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