Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/clean-cache
diff options
context:
space:
mode:
Diffstat (limited to 'bin/clean-cache')
-rwxr-xr-xbin/clean-cache6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/clean-cache b/bin/clean-cache
index 726fd2e..83657b6 100755
--- a/bin/clean-cache
+++ b/bin/clean-cache
@@ -15,13 +15,13 @@ fi
repos='build-support community-staging community-testing community core extra gnome-unstable kde-unstable staging testing'
-mirror="$(
+mirror"$(
grep -m1 '^Server = ' '/etc/pacman.d/mirrorlist32' | \
cut -d= -f2 | \
sed 's|^\s*||'
-)"
+)
-tmp_dir="$(mktemp -d)"
+tmp_dir=$(mktemp -d)
trap 'rm -rf --one-file-system "${tmp_dir}"' EXIT
for repo in ${repos}; do