mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-07-01 07:22:45 +00:00
fix apt-delete-old-debs
This commit is contained in:
parent
3366f73dde
commit
1cde73aeda
@ -188,8 +188,8 @@ function apt-delete-old-debs {
|
||||
local_filelist="${base_dir}/filelist.local"
|
||||
(cd ${base_dir}; find . -type f -iname "*.deb") | sed 's+^\./++' > ${local_filelist}
|
||||
comm <(sort $remote_filelist) <(sort $local_filelist) -13 | while read file; do
|
||||
echo "deleting ${file}"
|
||||
rm ${file}
|
||||
echo "deleting ${base_dir}/${file}"
|
||||
rm "${base_dir}/${file}"
|
||||
done
|
||||
rm $local_filelist
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user