Skip to content

Commit b87246d

Browse files
authored
Merge pull request hestiacp#1069 from Srgk/master
fix trailing dot quotes
2 parents 1d9be16 + cb53616 commit b87246d

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 @@ fi
3939
# Add trailing dot at the end of NS/CNAME/MX/PTR/SRV record
4040
if [[ $rtype =~ NS|CNAME|MX|PTR|SRV ]]; then
4141
trailing_dot=$(echo $dvalue | grep "\.$")
42-
if [ -z $trailing_dot ]; then
42+
if [ -z "$trailing_dot" ]; then
4343
dvalue="$dvalue."
4444
fi
4545
fi

0 commit comments

Comments
 (0)