Explorar o código

fixed OR statement

Serghey Rodin %!s(int64=12) %!d(string=hai) anos
pai
achega
77d7870027
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      func/domain.sh

+ 1 - 1
func/domain.sh

@@ -477,7 +477,7 @@ is_dns_record_critical() {
 is_dns_fqnd() {
     t=$1
     r=$2
-    fqdn_type=$(echo $t | grep "[NS|CNAME|MX|PTR|SRV]")
+    fqdn_type=$(echo $t | grep "NS\|CNAME\|MX\|PTR\|SRV")
     tree_length=3
     if [ $t = 'CNAME' ]; then
         tree_length=2