From 4ecf44d41b845c18fc072be54e9858a76219aadf Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Sun, 9 Feb 2014 22:41:50 +0200 Subject: [PATCH] one more fix for OR syntax in grep --- bin/v-add-dns-record | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/v-add-dns-record b/bin/v-add-dns-record index 075586f89..6fd66d68b 100755 --- a/bin/v-add-dns-record +++ b/bin/v-add-dns-record @@ -39,7 +39,7 @@ if [ "$rtype" != 'MX' ] && [ "$rtype" != 'SRV' ]; then fi # Add trailing dot at the end of NS/CNAME/MX/PTR/SRV record -fqdn_type=$(echo $rtype | grep "[NS|CNAME|MX|PTR|SRV]") +fqdn_type=$(echo $rtype |grep "NS\|CNAME\|MX\|PTR\|SRV") if [ ! -z "$fqdn_type" ]; then trailing_dot=$(echo $dvalue | grep "\.$") if [ -z $trailing_dot ]; then