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
1f777a94
Unverified
Commit
1f777a94
authored
Mar 07, 2023
by
Easton Man
Browse files
fix: change some debug comments
parent
7560c64f
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_huaweicloud.sh
View file @
1f777a94
...
@@ -175,11 +175,11 @@ _get_zoneid() {
...
@@ -175,11 +175,11 @@ _get_zoneid() {
if
_contains
"
${
response
}
"
'"id"'
;
then
if
_contains
"
${
response
}
"
'"id"'
;
then
zoneidlist
=
$(
echo
"
${
response
}
"
| _egrep_o
"
\"
id
\"
: *
\"
[^
\"
]*
\"
"
|
cut
-d
:
-f
2 |
tr
-d
\"
|
tr
-d
" "
)
zoneidlist
=
$(
echo
"
${
response
}
"
| _egrep_o
"
\"
id
\"
: *
\"
[^
\"
]*
\"
"
|
cut
-d
:
-f
2 |
tr
-d
\"
|
tr
-d
" "
)
zonenamelist
=
$(
echo
"
${
response
}
"
| _egrep_o
"
\"
name
\"
: *
\"
[^
\"
]*
\"
"
|
cut
-d
:
-f
2 |
tr
-d
\"
|
tr
-d
" "
)
zonenamelist
=
$(
echo
"
${
response
}
"
| _egrep_o
"
\"
name
\"
: *
\"
[^
\"
]*
\"
"
|
cut
-d
:
-f
2 |
tr
-d
\"
|
tr
-d
" "
)
_debug2
"Return Zone ID(s):"
"
${
zoneidlist
}
"
_debug2
"Return
ed
Zone ID(s):"
"
${
zoneidlist
}
"
_debug2
"Return Zone Name(s):"
"
${
zonenamelist
}
"
_debug2
"Return
ed
Zone Name(s):"
"
${
zonenamelist
}
"
zoneidnum
=
0
zoneidnum
=
0
zoneidcount
=
$(
echo
"
${
zoneidlist
}
"
|
grep
-c
'^'
)
zoneidcount
=
$(
echo
"
${
zoneidlist
}
"
|
grep
-c
'^'
)
_debug
"Retu
n
d Zone ID(s) Count:"
"
${
zoneidcount
}
"
_debug
"Retu
rne
d Zone ID(s) Count:"
"
${
zoneidcount
}
"
while
[
"
${
zoneidnum
}
"
-lt
"
${
zoneidcount
}
"
]
;
do
while
[
"
${
zoneidnum
}
"
-lt
"
${
zoneidcount
}
"
]
;
do
zoneidnum
=
$(
_math
"
$zoneidnum
"
+ 1
)
zoneidnum
=
$(
_math
"
$zoneidnum
"
+ 1
)
_zoneid
=
$(
echo
"
${
zoneidlist
}
"
|
sed
-n
"
${
zoneidnum
}
p"
)
_zoneid
=
$(
echo
"
${
zoneidlist
}
"
|
sed
-n
"
${
zoneidnum
}
p"
)
...
...
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