From 1cde73aeda064609375f8786c5f3048aa7753a5e Mon Sep 17 00:00:00 2001 From: z4yx Date: Sun, 8 Mar 2020 12:59:58 +0800 Subject: [PATCH] fix apt-delete-old-debs --- helpers/apt-download | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers/apt-download b/helpers/apt-download index 5c53b6b..b2f3a67 100644 --- a/helpers/apt-download +++ b/helpers/apt-download @@ -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 }