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
88ed5e50
Commit
88ed5e50
authored
Dec 03, 2016
by
Stefan Seidel
Browse files
fix whitespace and UUOC
parent
76a3371b
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_do.sh
View file @
88ed5e50
...
...
@@ -80,7 +80,7 @@ _dns_do_soap() {
shift
# put the parameters to xml
body
=
"<tns:
${
func
}
xmlns:tns=
\"
${
DO_URL
}
\"
>"
while
[
"
$1
"
]
;
do
while
[
"
$1
"
]
;
do
_k
=
"
$1
"
shift
_v
=
"
$1
"
...
...
@@ -108,7 +108,7 @@ _dns_do_soap() {
_debug2
"SOAP response
$response
"
# retrieve cookie header
cat
"
$HTTP_HEADER
"
|
_egrep_o
'Cookie: [^;]+'
|
head
-1
>
"
${
_cookiejar
}
"
_egrep_o
'Cookie: [^;]+'
<
"
$HTTP_HEADER
"
|
head
-1
>
"
${
_cookiejar
}
"
return
0
}
...
...
@@ -119,7 +119,7 @@ _get_root() {
_all_domains
=
"
$(
_mktemp
)
"
_dns_do_soap getDomainList
echo
"
${
response
}
"
|
tr
-d
"
\n\r\t
"
| _egrep_o
'domain</key><value[^>]+>[^<]+'
|
sed
-e
's/^domain<\/key><value[^>]+>//g'
>
"
${
_all_domains
}
"
echo
"
${
response
}
"
|
tr
-d
"
\n\r\t
"
| _egrep_o
'domain</key><value[^>]+>[^<]+'
|
sed
-e
's/^domain<\/key><value[^>]+>//g'
>
"
${
_all_domains
}
"
while
true
;
do
h
=
$(
printf
"%s"
"
$domain
"
|
cut
-d
.
-f
$i
-100
)
...
...
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