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
c58465d6
Commit
c58465d6
authored
May 03, 2018
by
Vlad Roskov
Browse files
fix comparison on empty var
parent
26633346
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_yandex.sh
View file @
c58465d6
...
@@ -54,7 +54,7 @@ _PDD_get_domain() {
...
@@ -54,7 +54,7 @@ _PDD_get_domain() {
_debug2
"res1"
"
$res1
"
_debug2
"res1"
"
$res1
"
__found
=
"
$(
echo
"
$res1
"
|
sed
-n
-e
's#.* "found": \([^,]*\),.*#\1#p'
)
"
__found
=
"
$(
echo
"
$res1
"
|
sed
-n
-e
's#.* "found": \([^,]*\),.*#\1#p'
)
"
_debug
"found:
$__found
results on page"
_debug
"found:
$__found
results on page"
if
[
"
$__found
"
-lt
20
]
;
then
if
[
"
0
$__found
"
-lt
20
]
;
then
_debug
"last page:
$__page
"
_debug
"last page:
$__page
"
__last
=
1
__last
=
1
fi
fi
...
...
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