Update backup.sh

This commit is contained in:
2020-08-22 02:56:12 +02:00
committed by GitHub
parent 059eeff2c4
commit 45acb9d50b
-1
View File
@@ -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