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
eea9aaf9
Commit
eea9aaf9
authored
Dec 20, 2018
by
Ivru
Browse files
Fix typos
parent
67d3e8d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_exoscale.sh
View file @
eea9aaf9
...
...
@@ -61,7 +61,7 @@ dns_exoscale_rm() {
_record_id
=
$(
echo
"
$response
"
|
tr
'{'
"
\n
"
|
grep
"
\"
content
\"
:
\"
$txtvalue
\"
"
| _egrep_o
"
\"
id
\"
:[^,]+"
| _head_n 1 |
cut
-d
:
-f
2 |
tr
-d
\"
)
fi
if
[
-z
"
$_record_id
"
]
;
then
if
[
-z
"
$_record_id
"
]
;
then
_err
"Can not get record id to remove."
return
1
fi
...
...
@@ -123,7 +123,7 @@ _get_root() {
if
_contains
"
$response
"
"
\"
name
\"
:
\"
$h
\"
"
>
/dev/null
;
then
_domain_id
=
$(
echo
"
$response
"
|
tr
'{'
"
\n
"
|
grep
"
\"
name
\"
:
\"
$h
\"
"
| _egrep_o
"
\"
id
\"
:[^,]+"
| _head_n 1 |
cut
-d
:
-f
2 |
tr
-d
\"
)
_domain_token
=
$(
echo
"
$response
"
|
tr
'{'
"
\n
"
|
grep
"
\"
name
\"
:
\"
$h
\"
"
| _egrep_o
"
\"
token
\"
:
\"
[^
\"
]*
\"
"
| _head_n 1 |
cut
-d
:
-f
2 |
tr
-d
\"
)
if
[
"
$_domain_token
"
]
&&
[
"
$_domain_id
"
]
;
then
if
[
"
$_domain_token
"
]
&&
[
"
$_domain_id
"
]
;
then
_sub_domain
=
$(
printf
"%s"
"
$domain
"
|
cut
-d
.
-f
1-
$p
)
_domain
=
$h
return
0
...
...
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