mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-06 00:39:44 +01:00
use bash internal functions for #864
This commit is contained in:
parent
76248493a0
commit
8ceb1b5ad8
@ -6571,9 +6571,10 @@ certificate_info() {
|
|||||||
|
|
||||||
caa_node="$NODE"
|
caa_node="$NODE"
|
||||||
caa=""
|
caa=""
|
||||||
while ( [[ -z "$caa" ]] && [[ ! -z "$caa_node" ]] ); do
|
while ( [[ -z "$caa" ]] && [[ "$caa_node" != "." ]] ); do
|
||||||
caa="$(get_caa_rr_record $caa_node)"
|
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
|
done
|
||||||
|
|
||||||
if [[ -n "$caa" ]]; then
|
if [[ -n "$caa" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user