1
0
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:
William Melody 2015-04-18 21:21:46 -07:00
parent 2c83de9dff
commit 26ad499fee

6
hosts
View File

@ -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}" \