mirror of
https://github.com/octoleo/hosts.git
synced 2024-11-22 21:05: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}"
|
"${HOSTS_PATH}"
|
||||||
else
|
else
|
||||||
if [[ -n ${comment} ]]; then
|
if [[ -n ${comment} ]]; then
|
||||||
local formmatted_comment
|
local formatted_comment
|
||||||
formmatted_comment=$(_join " " "${comment[@]}")
|
formatted_comment=$(_join " " "${comment[@]}")
|
||||||
printf "%s\t%s\t# %s\n" \
|
printf "%s\t%s\t# %s\n" \
|
||||||
"${ip}" \
|
"${ip}" \
|
||||||
"${hostname}" \
|
"${hostname}" \
|
||||||
"${formmatted_comment}" >> "${HOSTS_PATH}"
|
"${formatted_comment}" >> "${HOSTS_PATH}"
|
||||||
else
|
else
|
||||||
printf "%s\t%s\n" \
|
printf "%s\t%s\n" \
|
||||||
"${ip}" \
|
"${ip}" \
|
||||||
|
Loading…
Reference in New Issue
Block a user