mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-11-09 16:01:46 +00:00
Fix for SC2039/SC2086
This commit is contained in:
parent
6d62ae226a
commit
58642286c9
@ -88,7 +88,7 @@ _get_root() {
|
||||
i=$(_math "$i" - 1)
|
||||
|
||||
while true; do
|
||||
h=$(printf "%s" "$rdomain" | cut -d . -f $i-100)
|
||||
h=$(printf "%s" "$rdomain" | cut -d . -f "$i"-100)
|
||||
_debug h "$h"
|
||||
if [ -z "$h" ]; then
|
||||
return 1 #not valid domain
|
||||
@ -102,7 +102,7 @@ _get_root() {
|
||||
fi
|
||||
fi
|
||||
i=$(_math "$i" - 1)
|
||||
if (( i < 2 )); then
|
||||
if $(( i < 2 )); then
|
||||
return 1 #not found, no need to check _acme-challenge.sub.domain in leaseweb api.
|
||||
fi
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user