Update dns_gd.sh

This commit is contained in:
BordenIT, LLC Admin 2023-11-11 16:02:41 -05:00 committed by GitHub
parent 377a37e4c9
commit d0cfa74408
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,7 @@ dns_gd_add() {
fi fi
_add_data="{\"data\":\"$txtvalue\"}" _add_data="{\"data\":\"$txtvalue\"}"
for t in $(echo "$response" | tr '{' "\n" | grep "\"name\":\"$_sub_domain\"" | tr ',' "\n" | grep '"data"' | cut -d : -f 2); do for t in $(echo "$response" | tr '{' "\n" | grep "\"name\":\"$fulldomain\"" | tr ',' "\n" | grep '"data"' | cut -d : -f 2); do
_debug2 t "$t" _debug2 t "$t"
# ignore empty (previously removed) records, to prevent useless _acme-challenge TXT entries # ignore empty (previously removed) records, to prevent useless _acme-challenge TXT entries
if [ "$t" ] && [ "$t" != '""' ]; then if [ "$t" ] && [ "$t" != '""' ]; then