From 45acb9d50b409b5e7a67c0f6ef16e0a06ae96f93 Mon Sep 17 00:00:00 2001 From: Daniel Dolezal <40464775+daniel156161@users.noreply.github.com> Date: Sat, 22 Aug 2020 02:56:12 +0200 Subject: [PATCH] Update backup.sh --- backup.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/backup.sh b/backup.sh index 3d88272..8225360 100755 --- a/backup.sh +++ b/backup.sh @@ -63,7 +63,6 @@ do_backup if [ ! -z $keepfiles ]; then remove=$(ls -d -1tr $destination/*.xml | tail -n +$keepfiles | head -n1) if [ ! -z $remove ]; then - keepfiles=$((keepfiles + 1)) del=$(ls $destination/*.xml | head -n -$keepfiles) if [ ! -z $del ]; then rm -f $del