common: backup_autoremove: Fix call find

dehydrated
Felix Stupp 5 years ago
parent 102de98479
commit 00fa7852e1
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -17,5 +17,5 @@ find {{ backups_directory | quote }} -type f |
getDirName |
sort --unique |
while read dir; do
find "$dir" --type f | onlyDatedFiles | sort --reverse | tail --lines=+$((backupsToKeep + 1)) | xargs rm;
find "$dir" -type f | onlyDatedFiles | sort --reverse | tail --lines=+$((backupsToKeep + 1)) | xargs rm;
done

Loading…
Cancel
Save