use bash internal functions for #864

This commit is contained in:
Dirk 2017-10-18 15:25:43 +02:00
parent 76248493a0
commit 8ceb1b5ad8
1 changed files with 3 additions and 2 deletions

View File

@ -6571,9 +6571,10 @@ certificate_info() {
caa_node="$NODE"
caa=""
while ( [[ -z "$caa" ]] && [[ ! -z "$caa_node" ]] ); do
while ( [[ -z "$caa" ]] && [[ "$caa_node" != "." ]] ); do
caa="$(get_caa_rr_record $caa_node)"
caa_node="$(echo "$caa_node."|cut -f 2- -d '.'|sed 's/\.$//')"
caa_node+="."
caa_node=${caa_node#*.}
done
if [[ -n "$caa" ]]; then