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
d3c4cd82
Commit
d3c4cd82
authored
Mar 08, 2017
by
nytral
Browse files
bugfix
parent
17361df6
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_nsone.sh
View file @
d3c4cd82
...
@@ -41,7 +41,7 @@ dns_nsone_add() {
...
@@ -41,7 +41,7 @@ dns_nsone_add() {
return
1
return
1
fi
fi
count
=
$(
printf
"%s
\n
"
"
$response
"
| _egrep_o
"
\"
domain
\"
:
\"
$fulldomain
.
\"
,[^{]*
\"
type
\"
:
\"
TXT
\"
"
|
wc
-l
|
tr
-d
" "
)
count
=
$(
printf
"%s
\n
"
"
$response
"
| _egrep_o
"
\"
domain
\"
:
\"
$fulldomain
\"
,[^{]*
\"
type
\"
:
\"
TXT
\"
"
|
wc
-l
|
tr
-d
" "
)
_debug count
"
$count
"
_debug count
"
$count
"
if
[
"
$count
"
=
"0"
]
;
then
if
[
"
$count
"
=
"0"
]
;
then
_info
"Adding record"
_info
"Adding record"
...
...
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