mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-22 13:11:41 +00:00
Fix format: use double quote to prevent globbing and word splitting
This commit is contained in:
parent
9c87a5890d
commit
f589a1d245
@ -73,10 +73,10 @@ EOF
|
|||||||
_get_root() {
|
_get_root() {
|
||||||
domain=$1
|
domain=$1
|
||||||
i="$(echo "$fulldomain" | tr '.' ' ' | wc -w)"
|
i="$(echo "$fulldomain" | tr '.' ' ' | wc -w)"
|
||||||
i=$(_math $i - 1)
|
i=$(_math "$i" - 1)
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
h=$(printf "%s" "$domain" | cut -d . -f $i-100)
|
h=$(printf "%s" "$domain" | cut -d . -f "$i"-100)
|
||||||
if [ -z "$h" ]; then
|
if [ -z "$h" ]; then
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user