mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-01-11 18:32:22 +08:00
fix format
This commit is contained in:
@@ -137,7 +137,7 @@ _get_root() {
|
||||
p=1
|
||||
|
||||
while true; do
|
||||
_domain=$(printf "%s" "$fulldomain" | cut -d . -f $i-100)
|
||||
_domain=$(printf "%s" "$fulldomain" | cut -d . -f "$i"-100)
|
||||
|
||||
_debug _domain "$_domain"
|
||||
if [ -z "$_domain" ]; then
|
||||
@@ -150,7 +150,7 @@ _get_root() {
|
||||
fi
|
||||
|
||||
if ! _contains "$response" '"error":"no such domain in user context"' >/dev/null; then
|
||||
_sub_domain=$(printf "%s" "$fulldomain" | cut -d . -f 1-$p)
|
||||
_sub_domain=$(printf "%s" "$fulldomain" | cut -d . -f 1-"$p")
|
||||
if [ -z "$_sub_domain" ]; then
|
||||
# not valid
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user