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
d064260b
Commit
d064260b
authored
Mar 01, 2018
by
neilpang
Browse files
fix
https://github.com/Neilpang/acme.sh/issues/1315
parent
22d827ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_he.sh
View file @
d064260b
...
...
@@ -117,7 +117,7 @@ _find_zone() {
_debug2 response
"
$response
"
_table
=
"
$(
echo
"
$response
"
|
tr
-d
"#"
|
sed
"s/<table/#<table/g"
|
tr
-d
"
\n
"
|
tr
"#"
"
\n
"
|
grep
'id="domains_table"'
)
"
_debug2 _table
"
$_table
"
_matches
=
"
$(
echo
"
$_table
"
|
sed
"s/<tr/#<tr/g"
|
tr
"#"
"
\n
"
|
grep
'alt="edit"'
|
tr
-d
" "
|
sed
"s/<td/#<td/g"
|
tr
"#"
"
\n
"
|
sed
-n
3p
)
"
_matches
=
"
$(
echo
"
$_table
"
|
sed
"s/<tr/#<tr/g"
|
tr
"#"
"
\n
"
|
grep
'alt="edit"'
|
tr
-d
" "
|
sed
"s/<td/#<td/g"
|
tr
"#"
"
\n
"
|
grep
'hosted_dns_zoneid'
)
"
_debug2 _matches
"
$_matches
"
# Zone names and zone IDs are in same order
_zone_ids
=
$(
echo
"
$_matches
"
| _egrep_o
"hosted_dns_zoneid=[0-9]*&"
|
cut
-d
=
-f
2 |
tr
-d
'&'
)
...
...
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