Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
e71887e1
Commit
e71887e1
authored
Dec 07, 2016
by
neil
Committed by
GitHub
Dec 07, 2016
Browse files
fix for solaris
fix for solaris
parents
b482f3ce
39d1eeda
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_aws.sh
View file @
e71887e1
...
...
@@ -91,13 +91,13 @@ _get_root() {
fi
if
_contains
"
$response
"
"<Name>
$h
.</Name>"
;
then
hostedzone
=
"
$(
echo
"
$response
"
|
sed
's/<HostedZone>/\n&/g'
| _egrep_o
"<HostedZone>.*<Name>
$h
.<
/
Name>.*<
/
HostedZone>"
)
"
hostedzone
=
"
$(
echo
"
$response
"
|
sed
's/<HostedZone>/\n&/g'
| _egrep_o
"<HostedZone>.*<Name>
$h
.<
.
Name>.*<
.
HostedZone>"
)
"
_debug hostedzone
"
$hostedzone
"
if
[
-z
"
$hostedzone
"
]
;
then
_err
"Error, can not get hostedzone."
return
1
fi
_domain_id
=
$(
printf
"%s
\n
"
"
$hostedzone
"
| _egrep_o
"<Id>.*<
/
Id>"
|
head
-n
1 | _egrep_o
">.*<"
|
tr
-d
"<>"
)
_domain_id
=
$(
printf
"%s
\n
"
"
$hostedzone
"
| _egrep_o
"<Id>.*<
.
Id>"
|
head
-n
1 | _egrep_o
">.*<"
|
tr
-d
"<>"
)
if
[
"
$_domain_id
"
]
;
then
_sub_domain
=
$(
printf
"%s"
"
$domain
"
|
cut
-d
.
-f
1-
$p
)
_domain
=
$h
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment