From 89fc555eb19efb4b4854fd0b768306de161afb24 Mon Sep 17 00:00:00 2001 From: phil Date: Sat, 2 Dec 2023 22:03:25 +0100 Subject: [PATCH] Add newline --- templates/borg_exporter.j2 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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"