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
7b32bbfc
Commit
7b32bbfc
authored
Jul 03, 2017
by
RaidenII
Browse files
Fix for SC2086.
parent
6963f388
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_namecom.sh
View file @
7b32bbfc
...
@@ -174,7 +174,7 @@ _namecom_get_root() {
...
@@ -174,7 +174,7 @@ _namecom_get_root() {
# Need to exclude the last field (tld)
# Need to exclude the last field (tld)
numfields
=
$(
echo
"
$domain
"
| _egrep_o
"
\.
"
|
wc
-l
)
numfields
=
$(
echo
"
$domain
"
| _egrep_o
"
\.
"
|
wc
-l
)
while
[
$i
-le
$numfields
]
;
do
while
[
$i
-le
"
$numfields
"
]
;
do
host
=
$(
printf
"%s"
"
$domain
"
|
cut
-d
.
-f
$i
-100
)
host
=
$(
printf
"%s"
"
$domain
"
|
cut
-d
.
-f
$i
-100
)
_debug host
"
$host
"
_debug host
"
$host
"
if
[
-z
"
$host
"
]
;
then
if
[
-z
"
$host
"
]
;
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