summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huntwork <jhuntwork@lightcubesolutions.com>2012-05-28 16:13:35 +0000
committerDan McGee <dan@archlinux.org>2012-06-25 23:07:49 -0500
commitd310b6f85cd664a45a19d74678b0a4abeb3c5e25 (patch)
treec0d0ab95acf1a270478ae7b9d95d4c839ec5ab17
parent3a24e44206c38577ef4405bf66583e2084688e5c (diff)
downloadpacman-d310b6f85cd664a45a19d74678b0a4abeb3c5e25.tar.xz
Allow wildcards in PURGE_TARGETS to match any type of file except for directories.
Signed-off-by: Jeremy Huntwork <jhuntwork@lightcubesolutions.com>
-rw-r--r--scripts/makepkg.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index bd7a44fc..c0556918 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1048,7 +1048,7 @@ tidy_install() {
local pt
for pt in "${PURGE_TARGETS[@]}"; do
if [[ ${pt} = "${pt//\/}" ]]; then
- find . -type f -name "${pt}" -exec rm -f -- '{}' \;
+ find . ! -type d -name "${pt}" -exec rm -f -- '{}' \;
else
rm -f ${pt}
fi