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
a5f943e2
Commit
a5f943e2
authored
Feb 08, 2022
by
peter
Browse files
removed unused variable
parent
f8532ba8
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_curanet.sh
View file @
a5f943e2
...
@@ -114,7 +114,6 @@ gettoken() {
...
@@ -114,7 +114,6 @@ gettoken() {
_get_root
()
{
_get_root
()
{
domain
=
$1
domain
=
$1
i
=
1
i
=
1
p
=
1
while
true
;
do
while
true
;
do
h
=
$(
printf
"%s"
"
$domain
"
|
cut
-d
.
-f
$i
-100
)
h
=
$(
printf
"%s"
"
$domain
"
|
cut
-d
.
-f
$i
-100
)
...
@@ -134,7 +133,6 @@ _get_root() {
...
@@ -134,7 +133,6 @@ _get_root() {
return
0
return
0
fi
fi
p
=
$i
i
=
$(
_math
"
$i
"
+ 1
)
i
=
$(
_math
"
$i
"
+ 1
)
done
done
return
1
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