Skip to content

Commit

Permalink
Update dns_gd.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
bordenit authored Nov 11, 2023
1 parent 377a37e commit d0cfa74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dnsapi/dns_gd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ dns_gd_add() {
fi

_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"
# ignore empty (previously removed) records, to prevent useless _acme-challenge TXT entries
if [ "$t" ] && [ "$t" != '""' ]; then
Expand Down

0 comments on commit d0cfa74

Please sign in to comment.