1
0
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:
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}" "${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}" \