diff --git a/templates/borg_exporter.j2 b/templates/borg_exporter.j2 index 5d5c247..15742a1 100644 --- a/templates/borg_exporter.j2 +++ b/templates/borg_exporter.j2 @@ -55,7 +55,5 @@ EOF status=$(get_status_data) printf '%s' "$status" >"$TMP_FILE" +printf '\n' >> "$TMP_FILE" mv "$TMP_FILE" "$PROM_FILE" - -# The textfile collector needs a newline at the end of the file -echo >> "$PROM_FILE"