Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
7dce465c
Commit
7dce465c
authored
Mar 04, 2021
by
neilpang
Committed by
Alexander Kulumbeg
Mar 21, 2021
Browse files
fix
https://github.com/acmesh-official/acme.sh/issues/3019
parent
5a30f5c0
Changes
1
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_namecheap.sh
View file @
7dce465c
...
@@ -208,7 +208,7 @@ _namecheap_parse_host() {
...
@@ -208,7 +208,7 @@ _namecheap_parse_host() {
_hostid
=
$(
echo
"
$_host
"
| _egrep_o
' HostId="[^"]*'
|
cut
-d
'"'
-f
2
)
_hostid
=
$(
echo
"
$_host
"
| _egrep_o
' HostId="[^"]*'
|
cut
-d
'"'
-f
2
)
_hostname
=
$(
echo
"
$_host
"
| _egrep_o
' Name="[^"]*'
|
cut
-d
'"'
-f
2
)
_hostname
=
$(
echo
"
$_host
"
| _egrep_o
' Name="[^"]*'
|
cut
-d
'"'
-f
2
)
_hosttype
=
$(
echo
"
$_host
"
| _egrep_o
' Type="[^"]*'
|
cut
-d
'"'
-f
2
)
_hosttype
=
$(
echo
"
$_host
"
| _egrep_o
' Type="[^"]*'
|
cut
-d
'"'
-f
2
)
_hostaddress
=
$(
echo
"
$_host
"
| _egrep_o
' Address="[^"]*'
|
cut
-d
'"'
-f
2
)
_hostaddress
=
$(
echo
"
$_host
"
| _egrep_o
' Address="[^"]*'
|
cut
-d
'"'
-f
2
| _xml_decode
)
_hostmxpref
=
$(
echo
"
$_host
"
| _egrep_o
' MXPref="[^"]*'
|
cut
-d
'"'
-f
2
)
_hostmxpref
=
$(
echo
"
$_host
"
| _egrep_o
' MXPref="[^"]*'
|
cut
-d
'"'
-f
2
)
_hostttl
=
$(
echo
"
$_host
"
| _egrep_o
' TTL="[^"]*'
|
cut
-d
'"'
-f
2
)
_hostttl
=
$(
echo
"
$_host
"
| _egrep_o
' TTL="[^"]*'
|
cut
-d
'"'
-f
2
)
...
@@ -405,3 +405,11 @@ _namecheap_set_tld_sld() {
...
@@ -405,3 +405,11 @@ _namecheap_set_tld_sld() {
done
done
}
}
_xml_decode
()
{
sed
's/"/"/g'
}
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