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
fc301717
Unverified
Commit
fc301717
authored
Mar 19, 2019
by
neil
Committed by
GitHub
Mar 19, 2019
Browse files
Merge pull request #2175 from loial/dns_gdnsdk_fix
dns_gdnsdk: Fixed stupid regex error, want literal "-", not a range
parents
c74d597c
7679df06
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_gdnsdk.sh
View file @
fc301717
...
@@ -137,7 +137,7 @@ _mypost() {
...
@@ -137,7 +137,7 @@ _mypost() {
_get_domain
()
{
_get_domain
()
{
_myget
'action=dns_primarydns'
_myget
'action=dns_primarydns'
_domains
=
$(
echo
"
$_result
"
| _egrep_o
' domain="[[:alnum:].
-
_]+'
|
sed
's/^.*"//'
)
_domains
=
$(
echo
"
$_result
"
| _egrep_o
' domain="[[:alnum:]._
-
]+'
|
sed
's/^.*"//'
)
if
[
-z
"
$_domains
"
]
;
then
if
[
-z
"
$_domains
"
]
;
then
_err
"Primary domain list not found!"
_err
"Primary domain list not found!"
return
1
return
1
...
...
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