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
72a7f932
Commit
72a7f932
authored
Jul 30, 2018
by
KUDO Takashi
Browse files
fix indent
parent
2e74df25
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_conoha.sh
View file @
72a7f932
...
...
@@ -117,9 +117,9 @@ dns_conoha_rm() {
return
1
fi
record_id
=
$(
printf
"%s"
"
$response
"
| _egrep_o
'{[^}]*}'
|
grep
'"type":"TXT"'
|
grep
"
\"
data
\"
:
\"
$txtvalue
\"
"
| _egrep_o
"
\"
id
\"
:
\"
[^
\"
]*
\"
"
|
_head_n 1 |
cut
-d
:
-f
2 |
tr
-d
\"
)
record_id
=
$(
printf
"%s"
"
$response
"
| _egrep_o
'{[^}]*}'
\
|
grep
'"type":"TXT"'
|
grep
"
\"
data
\"
:
\"
$txtvalue
\"
"
| _egrep_o
"
\"
id
\"
:
\"
[^
\"
]*
\"
"
\
|
_head_n 1 |
cut
-d
:
-f
2 |
tr
-d
\"
)
if
[
-z
"
$record_id
"
]
;
then
_err
"Can not get record id to remove."
return
1
...
...
@@ -147,7 +147,7 @@ _conoha_rest() {
export
_H2
=
"Content-Type: application/json"
if
[
-n
"
$accesstoken
"
]
;
then
export
_H3
=
"X-Auth-Token:
$accesstoken
"
fi
fi
_debug
"
$ep
"
if
[
"
$m
"
!=
"GET"
]
;
then
...
...
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