mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-12-24 03:52:10 +08:00
Fix pattern matching for best zone selection
This commit is contained in:
@@ -100,7 +100,7 @@ _get_root() {
|
|||||||
bestzone=""
|
bestzone=""
|
||||||
for z in $zones; do
|
for z in $zones; do
|
||||||
case "$fulldomain" in
|
case "$fulldomain" in
|
||||||
*.$z|$z)
|
*."$z"|"$z")
|
||||||
if [ ${#z} -gt ${#bestzone} ]; then
|
if [ ${#z} -gt ${#bestzone} ]; then
|
||||||
bestzone=$z
|
bestzone=$z
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user