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
4fffb3c8
Unverified
Commit
4fffb3c8
authored
Aug 21, 2018
by
linux-insideDE
Committed by
GitHub
Aug 21, 2018
Browse files
make shfmt happy
parent
840b3a34
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_netcup.sh
View file @
4fffb3c8
...
...
@@ -24,7 +24,8 @@ dns_netcup_add() {
i
=
$exit
while
[
"
$exit
"
-gt
0
]
;
do
[
"
$exit
"
-gt
0
]
do
tmp
=
$(
echo
"
$fulldomain
"
|
cut
-d
'.'
-f
"
$exit
"
)
if
[
"
$(
_math
"
$i
"
-
"
$exit
"
)
"
-eq
0
]
;
then
domain
=
"
$tmp
"
...
...
@@ -60,7 +61,8 @@ dns_netcup_rm() {
rec
=
""
while
[
"
$exit
"
-gt
0
]
;
do
[
"
$exit
"
-gt
0
]
do
tmp
=
$(
echo
"
$fulldomain
"
|
cut
-d
'.'
-f
"
$exit
"
)
if
[
"
$(
_math
"
$i
"
-
"
$exit
"
)
"
-eq
0
]
;
then
domain
=
"
$tmp
"
...
...
@@ -88,7 +90,8 @@ dns_netcup_rm() {
ids
=
0000000000
i
=
1
while
[
"
$i
"
-ne
0
]
;
do
[
"
$i
"
-ne
0
]
do
specrec
=
$(
_getfield
"
$rec
"
"
$i
"
";"
)
idv
=
"
$ida
"
ida
=
$(
_getfield
"
$specrec
"
"1"
","
|
sed
's/\"id\":\"//g'
|
sed
's/\"//g'
)
...
...
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