Browse Source

Fixed shfmt errors

pull/6166/head
Peter Vos 3 weeks ago
parent
commit
3aa8365e51
  1. 4
      dnsapi/dns_mijn_host.sh

4
dnsapi/dns_mijn_host.sh

@ -126,14 +126,14 @@ _get_root() {
p=1
while true; do
h=$(printf "%s" "$domain" | cut -d . -f $i-)
h=$(printf "%s" "$domain" | cut -d . -f "$i"-)
if [ -z "$h" ]; then
return 1
fi
if _contains "$(dig ns "$h")" "mijn.host"; then
root_zone="$h"
subdomain=$(printf "%s" "$domain" | cut -d . -f 1-$p)
subdomain=$(printf "%s" "$domain" | cut -d . -f 1-"$p")
return 0
fi

Loading…
Cancel
Save