mirror of
https://github.com/DictXiong/dotfiles.git
synced 2024-11-24 14:47:02 +08:00
riot: only one domain func will be exec
This commit is contained in:
parent
35c302a445
commit
b727841ccc
|
@ -67,12 +67,11 @@ get_server_meta() {
|
||||||
if [[ "$host" == "$domain" && "$host" != "["*"]" ]]; then
|
if [[ "$host" == "$domain" && "$host" != "["*"]" ]]; then
|
||||||
domain="default"
|
domain="default"
|
||||||
fi
|
fi
|
||||||
if is_function ".domain"; then
|
|
||||||
".domain"
|
|
||||||
fi
|
|
||||||
local domain_func="$domain.domain"
|
local domain_func="$domain.domain"
|
||||||
if [[ -n "$domain" ]] && is_function "$domain_func"; then
|
if is_function "$domain_func"; then
|
||||||
"$domain_func"
|
"$domain_func"
|
||||||
|
elif is_function ".domain"; then
|
||||||
|
".domain"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user