summaryrefslogtreecommitdiff
path: root/clean-cache
diff options
context:
space:
mode:
Diffstat (limited to 'clean-cache')
-rwxr-xr-xclean-cache9
1 files changed, 4 insertions, 5 deletions
diff --git a/clean-cache b/clean-cache
index 35bc6a7..d2c9b3c 100755
--- a/clean-cache
+++ b/clean-cache
@@ -2,10 +2,9 @@
mirror_dir='/srv/http/arch-mirror'
-for repo_dir in $(
- find "${mirror_dir}" -type f -printf '%h\n' \
- | uniq \
- | sort -u
-); do
+find "${mirror_dir}" -type f -printf '%h\n' \
+| uniq \
+| sort -u \
+| while read -r repo_dir; do
paccache -v -r -k 2 -c "${repo_dir}"
done