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
d43227ed
Unverified
Commit
d43227ed
authored
Feb 11, 2020
by
Arthur Wiebe
Browse files
fix shellcheck issues
parent
719b6904
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_cf.sh
View file @
d43227ed
...
...
@@ -153,8 +153,8 @@ _get_root() {
if
_contains
"
$response
"
'"success":true'
;
then
_domain
=
$(
printf
"%s
\n
"
"
$response
"
| _egrep_o
"
\"
name
\"
:
\"
[^
\"
]*
\"
"
|
cut
-d
:
-f
2 |
tr
-d
\"
|
head
-n
1
)
if
[
"
$_domain
"
]
;
then
_cutlength
=
$(
expr
${#
domain
}
-
${#
_domain
}
- 1
)
_sub_domain
=
$(
printf
"%s"
"
$domain
"
|
cut
-c
1-
$_cutlength
)
_cutlength
=
$(
(
${#
domain
}
-
${#
_domain
}
-
1
)
)
_sub_domain
=
$(
printf
"%s"
"
$domain
"
|
cut
-c
"
1-
$_cutlength
"
)
_domain_id
=
$CF_Zone_ID
return
0
else
...
...
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