diff options
-rwxr-xr-x | clean-cache | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/clean-cache b/clean-cache index 412da37..e58107a 100755 --- a/clean-cache +++ b/clean-cache @@ -1,6 +1,6 @@ #!/bin/bash -mirror_dir='/srv/http/arch-mirror' +mirror_dir=$(readlink -e '/srv/http/arch-mirror') find "${mirror_dir}" -type f -printf '%h\n' \ | uniq \ @@ -37,3 +37,8 @@ find "${mirror_dir}" -type f -printf '%h\n' \ rm "${repo_dir}/${file}" done done + +find "${mirror_dir}" -type f -name '*.pkg.tar.zst' \ +| while read -r pkg; do + [ -f "${pkg}.sig" ] || echo "$f" +done |