strip burble.dn42 if required

This commit is contained in:
Simon Marsh 2020-09-25 20:13:13 +01:00
parent 7ae14cedab
commit f6d98bba6a
No known key found for this signature in database
GPG Key ID: 30B29A716A54DBB3

View File

@ -16,6 +16,9 @@ name="$1"
ipv6="$2"
ipv4="$3"
# strip .burble.dn42 from name if it was included
name=${name%.burble.dn42}
# the IPv4 arg is optional
if [ -z "$ipv4" ]
then