From dd9b8b717c4e3858ccca7f8965c5bab387e4a1a9 Mon Sep 17 00:00:00 2001 From: phil Date: Sat, 2 Dec 2023 17:24:29 +0100 Subject: [PATCH] Add newline to the end of the file --- templates/borg_exporter.j2 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/templates/borg_exporter.j2 b/templates/borg_exporter.j2 index d1bc730..5d5c247 100644 --- a/templates/borg_exporter.j2 +++ b/templates/borg_exporter.j2 @@ -19,13 +19,13 @@ borg_backup_age=$(echo "$NOW" "$borg_last_modified" | awk '{print(($1 - $2) / (2 get_status_data() { cat <"$TMP_FILE" mv "$TMP_FILE" "$PROM_FILE" + +# The textfile collector needs a newline at the end of the file +echo >> "$PROM_FILE"