From d310b6f85cd664a45a19d74678b0a4abeb3c5e25 Mon Sep 17 00:00:00 2001 From: Jeremy Huntwork Date: Mon, 28 May 2012 16:13:35 +0000 Subject: Allow wildcards in PURGE_TARGETS to match any type of file except for directories. Signed-off-by: Jeremy Huntwork --- scripts/makepkg.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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 -- cgit v1.2.3-70-g09d2