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"
|
local_filelist="${base_dir}/filelist.local"
|
||||||
(cd ${base_dir}; find . -type f -iname "*.deb") | sed 's+^\./++' > ${local_filelist}
|
(cd ${base_dir}; find . -type f -iname "*.deb") | sed 's+^\./++' > ${local_filelist}
|
||||||
comm <(sort $remote_filelist) <(sort $local_filelist) -13 | while read file; do
|
comm <(sort $remote_filelist) <(sort $local_filelist) -13 | while read file; do
|
||||||
echo "deleting ${file}"
|
echo "deleting ${base_dir}/${file}"
|
||||||
rm ${file}
|
rm "${base_dir}/${file}"
|
||||||
done
|
done
|
||||||
rm $local_filelist
|
rm $local_filelist
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user