Skip to content

Commit

Permalink
updated cloudflare_dns_record_delete.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed Feb 13, 2024
1 parent b438008 commit cc4b7c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudflare/cloudflare_dns_record_delete.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ fi
dns_record_id="$(
"$srcdir/cloudflare_api.sh" "/zones/$zone_id/dns_records?per_page=50000" |
jq -r '.result[] | [.id, .name] | @tsv' |
grep -E "^[[:alnum:]]+[[:space:]]+$hostname" |
grep -E -m 1 "^[[:alnum:]]+[[:space:]]+$hostname" |
sed 's/[[:space:]].*$//' ||
die "Failed to record DNS record '$hostname' in domain '$domain' - are the hostname and domain name correct?"
)"
Expand Down

0 comments on commit cc4b7c4

Please sign in to comment.