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
c7b90450
Unverified
Commit
c7b90450
authored
May 29, 2018
by
linux-insideDE
Committed by
GitHub
May 29, 2018
Browse files
make shfmt happy
parent
48e80220
Changes
1
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_netcup.sh
View file @
c7b90450
...
...
@@ -23,8 +23,8 @@ dns_netcup_add() {
exit
=
$(
_math
"
$exit
"
+ 1
)
i
=
$exit
while
[
"
$exit
"
-gt
0
]
do
while
[
"
$exit
"
-gt
0
]
;
do
tmp
=
$(
echo
"
$fulldomain
"
|
cut
-d
'.'
-f
"
$exit
"
)
if
[
"
$(
_math
"
$i
"
-
"
$exit
"
)
"
-eq
0
]
;
then
domain
=
"
$tmp
"
...
...
@@ -39,7 +39,7 @@ dns_netcup_add() {
_err
"
$msg
"
return
1
else
break
;
break
fi
fi
fi
...
...
@@ -59,8 +59,8 @@ dns_netcup_rm() {
i
=
$exit
rec
=
""
while
[
"
$exit
"
-gt
0
]
do
while
[
"
$exit
"
-gt
0
]
;
do
tmp
=
$(
echo
"
$fulldomain
"
|
cut
-d
'.'
-f
"
$exit
"
)
if
[
"
$(
_math
"
$i
"
-
"
$exit
"
)
"
-eq
0
]
;
then
domain
=
"
$tmp
"
...
...
@@ -76,7 +76,7 @@ dns_netcup_rm() {
_err
"
$msg
"
return
1
else
break
;
break
fi
fi
fi
...
...
@@ -87,8 +87,8 @@ dns_netcup_rm() {
idv
=
0001
ids
=
0000000000
i
=
1
while
[
"
$i
"
-ne
0
]
;
do
while
[
"
$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