This commit is contained in:
Oleg Sheynin 2024-07-19 11:09:34 -04:00
parent f391593857
commit 108ca29942
2 changed files with 4 additions and 3 deletions

View File

@ -1 +1 @@
0.9.7
0.9.8

View File

@ -21,7 +21,7 @@ src=${Settings[Src]}
prune_date=${Settings[PruneDate]}
echo "Finding files older than ${prune_date}..."
echo "Finding files older than ${prune_date} in ${Src} ..."
Cmd="find ${src} -type f ! -newermt \"${prune_date}\""
echo ${Cmd}
files=($(eval ${Cmd}))
@ -42,7 +42,8 @@ for f in $files ; do ls -l $f; done
echo "===================================="
echo "Total files to be pruned: ${total_files}"
Cmd="${Cmd} -delete"
echo "Removing files..."
Cmd="${Cmd} -print -delete"
echo ${Cmd}
eval ${Cmd}