diff options
author | Jeremy Huntwork <jhuntwork@lightcubesolutions.com> | 2012-05-28 18:13:35 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-06-26 06:07:49 +0200 |
commit | d310b6f85cd664a45a19d74678b0a4abeb3c5e25 (patch) | |
tree | c0d0ab95acf1a270478ae7b9d95d4c839ec5ab17 | |
parent | 3a24e44206c38577ef4405bf66583e2084688e5c (diff) | |
download | pacman-d310b6f85cd664a45a19d74678b0a4abeb3c5e25.tar.gz pacman-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.in | 2 |
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 |