Browse Source

All ShellCheck Alarms fixed

pull/4153/head
M.A.Sarbanha 2 years ago
committed by GitHub
parent
commit
d0d4926e2c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      dnsapi/dns_arvancdn.sh

4
dnsapi/dns_arvancdn.sh

@ -102,14 +102,14 @@ _get_root(){
break 2
fi
done
_zone=$(echo "${_zone}" | sed 's/^[^.]*\.\?//')
_zone=$(sed 's/^[^.]*\.\?//' <(echo "${_zone}"))
done
if [ -z "${_zone}" ]; then
_debug2 "_get_root(): Zone not found on provider"
exit 1
fi
_marked_zone=$(echo "${_fulldomain}" | sed "s/^\(.*\)\.\(${_zone}\)$/\1..\2/")
_marked_zone=$(sed "s/^\(.*\)\.\(${_zone}\)$/\1..\2/" <(echo "${_fulldomain}"))
echo "${_marked_zone}"
}

Loading…
Cancel
Save