mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-01-06 05:22:09 +08:00
fix format
This commit is contained in:
@@ -133,7 +133,7 @@ _get_root() {
|
||||
fi
|
||||
|
||||
while true; do
|
||||
h=$(printf "%s" "$domain" | cut -d . -f ${i}-100)
|
||||
h=$(printf "%s" "$domain" | cut -d . -f "${i}"-100)
|
||||
_debug h "$h"
|
||||
if [ -z "$h" ]; then
|
||||
#not valid
|
||||
@@ -141,7 +141,7 @@ _get_root() {
|
||||
fi
|
||||
|
||||
if _contains "$response" "\"$h\""; then
|
||||
_sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-${p})
|
||||
_sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-"${p}")
|
||||
_domain=${h}
|
||||
return 0
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user