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
1 changed files with 3 additions and 3 deletions

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