From 711f4fbc9a494bd4adb324bc605954180db705b3 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sat, 21 Nov 2020 19:09:32 +0100 Subject: clean-cache: accept white space in paths --- clean-cache | 9 ++++----- 1 file 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 -- cgit v1.2.3-54-g00ecf