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
b14ef537
Unverified
Commit
b14ef537
authored
Mar 28, 2018
by
Habetdin
Committed by
GitHub
Mar 28, 2018
Browse files
head => _head_n
parent
fde971fe
Changes
1
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_zilore.sh
View file @
b14ef537
...
...
@@ -73,7 +73,7 @@ dns_zilore_rm() {
_err
"Error while getting records list"
return
1
else
_record_id
=
$(
printf
"%s
\n
"
"
$response
"
| _egrep_o
"
\"
record_id
\"
:
\"
[^
\"
]+
\"
"
|
cut
-d
:
-f
2 |
tr
-d
\"
|
head
-
n
1
)
_record_id
=
$(
printf
"%s
\n
"
"
$response
"
| _egrep_o
"
\"
record_id
\"
:
\"
[^
\"
]+
\"
"
|
cut
-d
:
-f
2 |
tr
-d
\"
|
_
head
_
n 1
)
if
[
-z
"
$_record_id
"
]
;
then
_err
"Cannot determine _record_id"
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