dotfiles

My dotfiles, nothing really interesting to see ...
git clone https://git.onna.be/dotfiles.git
Log | Files | Refs | README

commit b826b7cff034f1bf92cc9332da595cd14b928d21
parent 6f336830c8c9f9246a5c73ddfc89aba0585881b8
Author: Paco Esteban <paco@onna.be>
Date:   Thu, 14 Jun 2018 20:00:14 +0200

better handling of last backup lookup

Diffstat:
bin/backup.sh | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/backup.sh b/bin/backup.sh @@ -28,7 +28,7 @@ fi echo "** deleting files older than $RETENTION days ..." find "$DEST_DIR" -maxdepth 1 -name "????????????" -mtime "+$RETENTION" -delete -LAST_BACKUP=$(ls -1dtr "$DEST_DIR"/* 2>/dev/null | tail -1) +LAST_BACKUP=$(find "$DEST_DIR" -maxdepth 1 -name "????????????" | sort | tail -1) # if LAST_BACKUP does not exist, it's our first run if [[ ! -z "$LAST_BACKUP" ]]; then