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

This commit is contained in:
csmk committed 2017-03-07 22:21:22 +09:00
1 parent 9c87a5890d
commit f589a1d245
1 file changed
+2 -2
+2 -2
View File
@@ -73,10 +73,10 @@ EOF
_get_root() {
domain=$1
i="$(echo "$fulldomain" | tr '.' ' ' | wc -w)"
i=$(_math $i - 1)
i=$(_math "$i" - 1)
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
return 1
fi
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.