collectd: remove extra newlines from the generated config
Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
This commit is contained in:
parent
fdd53a4c60
commit
a5d87390f2
1 changed files with 1 additions and 3 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue