mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 10:37:39 -07:00
one more fix for OR syntax in grep
This commit is contained in:
parent
77d7870027
commit
4ecf44d41b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue