Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts/makepkg.sh.in
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 /scripts/makepkg.sh.in
parent3a24e44206c38577ef4405bf66583e2084688e5c (diff)
Allow wildcards in PURGE_TARGETS to match any type of file except for directories.
Signed-off-by: Jeremy Huntwork <jhuntwork@lightcubesolutions.com>
Diffstat (limited to 'scripts/makepkg.sh.in')
-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