From 8d88ed179d100630355b18db20e8125223f4a875 Mon Sep 17 00:00:00 2001 From: Sebastian Widmer Date: Thu, 3 Oct 2024 14:48:59 +0200 Subject: [PATCH] Fix backups on days 1-9 (#2) Removes leading zero from day output, config vars don't have it. --- component/scripts/backup.sh | 2 +- .../rotating-bucket-backup/rotating-bucket-backup/10_jobs.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/component/scripts/backup.sh b/component/scripts/backup.sh index 84824c8..d2f1f90 100644 --- a/component/scripts/backup.sh +++ b/component/scripts/backup.sh @@ -2,7 +2,7 @@ set -eu -day=$(date +%d) +day=$(date +%-d) echo "It is day ${day} of the month. My backup journey will never end!" diff --git a/tests/golden/defaults/rotating-bucket-backup/rotating-bucket-backup/10_jobs.yaml b/tests/golden/defaults/rotating-bucket-backup/rotating-bucket-backup/10_jobs.yaml index db49d67..c1f2a6f 100644 --- a/tests/golden/defaults/rotating-bucket-backup/rotating-bucket-backup/10_jobs.yaml +++ b/tests/golden/defaults/rotating-bucket-backup/rotating-bucket-backup/10_jobs.yaml @@ -646,7 +646,7 @@ data: set -eu - day=$(date +%d) + day=$(date +%-d) echo "It is day ${day} of the month. My backup journey will never end!"