Unverified Commit f589a1d2 authored by csmk's avatar csmk
Browse files

Fix format: use double quote to prevent globbing and word splitting

parent 9c87a589
...@@ -73,10 +73,10 @@ EOF ...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment