Skip to content

Commit 4ecf44d

Browse files
committed
one more fix for OR syntax in grep
1 parent 77d7870 commit 4ecf44d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-add-dns-record

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ if [ "$rtype" != 'MX' ] && [ "$rtype" != 'SRV' ]; then
3939
fi
4040

4141
# Add trailing dot at the end of NS/CNAME/MX/PTR/SRV record
42-
fqdn_type=$(echo $rtype | grep "[NS|CNAME|MX|PTR|SRV]")
42+
fqdn_type=$(echo $rtype |grep "NS\|CNAME\|MX\|PTR\|SRV")
4343
if [ ! -z "$fqdn_type" ]; then
4444
trailing_dot=$(echo $dvalue | grep "\.$")
4545
if [ -z $trailing_dot ]; then

0 commit comments

Comments
 (0)