Skip to content

Commit

Permalink
Fix backups on days 1-9 (#2)
Browse files Browse the repository at this point in the history
Removes leading zero from day output, config vars don't have it.
  • Loading branch information
bastjan authored Oct 3, 2024
1 parent 0439035 commit 8d88ed1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion component/scripts/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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!"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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!"
Expand Down

0 comments on commit 8d88ed1

Please sign in to comment.