summaryrefslogtreecommitdiff
path: root/clean-cache
diff options
context:
space:
mode:
Diffstat (limited to 'clean-cache')
-rwxr-xr-xclean-cache7
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