mirror of
https://github.com/octoleo/hosts.git
synced 2024-11-22 12:55:11 +00:00
Spelling correction: formmatted_comment -> formatted_comment
This commit is contained in:
parent
2c83de9dff
commit
26ad499fee
6
hosts
6
hosts
@ -616,12 +616,12 @@ add() {
|
||||
"${HOSTS_PATH}"
|
||||
else
|
||||
if [[ -n ${comment} ]]; then
|
||||
local formmatted_comment
|
||||
formmatted_comment=$(_join " " "${comment[@]}")
|
||||
local formatted_comment
|
||||
formatted_comment=$(_join " " "${comment[@]}")
|
||||
printf "%s\t%s\t# %s\n" \
|
||||
"${ip}" \
|
||||
"${hostname}" \
|
||||
"${formmatted_comment}" >> "${HOSTS_PATH}"
|
||||
"${formatted_comment}" >> "${HOSTS_PATH}"
|
||||
else
|
||||
printf "%s\t%s\n" \
|
||||
"${ip}" \
|
||||
|
Loading…
Reference in New Issue
Block a user