mirror of
https://github.com/octoleo/hosts.git
synced 2025-02-06 20:38:26 +00:00
Use quotes when assigning function name.
This commit is contained in:
parent
73ecc3119e
commit
d775353c9a
2
hosts
2
hosts
@ -207,7 +207,7 @@ _load_commands() {
|
|||||||
# Each element has the format `declare -f function_name`, so set the name
|
# Each element has the format `declare -f function_name`, so set the name
|
||||||
# to only the 'function_name' part of the string.
|
# to only the 'function_name' part of the string.
|
||||||
local _function_name
|
local _function_name
|
||||||
_function_name=$(printf "%s" "${__name}" | awk '{ print $3 }')
|
_function_name="$(printf "%s" "${__name}" | awk '{ print $3 }')"
|
||||||
|
|
||||||
_debug printf \
|
_debug printf \
|
||||||
"_load_commands() \${_function_name}: %s\\n" \
|
"_load_commands() \${_function_name}: %s\\n" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user