collectd: remove extra newlines from the generated config

Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
This commit is contained in:
Maxim Storchak 2021-01-05 22:34:01 +02:00 committed by Hannu Nyman
parent fdd53a4c60
commit a5d87390f2
1 changed files with 1 additions and 3 deletions

View File

@ -236,11 +236,9 @@ process_generic() {
[ -z "$config" ] || {
printf "%s<Plugin %s>\n" "${CONFIG_STRING}" "$cfg" >> "$COLLECTD_CONF"
echo -e "${config}" >> "$COLLECTD_CONF"
echo -n -e "${config}" >> "$COLLECTD_CONF"
printf "%s</Plugin>\n" "${CONFIG_STRING}" >> "$COLLECTD_CONF"
}
printf "\n" >> "$COLLECTD_CONF"
}
process_plugins() {