Skip to content

Commit

Permalink
fix #593
Browse files Browse the repository at this point in the history
  • Loading branch information
neil committed Feb 10, 2017
1 parent 7c488b5 commit c9d7daa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dnsapi/dns_aws.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ _get_root() {
fi

if _contains "$response" "<Name>$h.</Name>"; then
hostedzone="$(echo "$response" | _egrep_o "<HostedZone><Id>[^<]*<.Id><Name>$h.<.Name>.*<.HostedZone>")"
hostedzone="$(echo "$response" | sed 's/<HostedZone>/#&/g' | tr '#' '\n' | _egrep_o "<HostedZone><Id>[^<]*<.Id><Name>$h.<.Name>.*<.HostedZone>")"
_debug hostedzone "$hostedzone"
if [ -z "$hostedzone" ]; then
_err "Error, can not get hostedzone."
Expand Down

0 comments on commit c9d7daa

Please sign in to comment.