From 6831a5f4b1bd05031fc4033d0d7f3328723dfd73 Mon Sep 17 00:00:00 2001 From: Sébastien Luttringer Date: Tue, 5 Mar 2013 02:03:44 +0100 Subject: makepkg: Avoid find to fork for each rm call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reported-by: Dave Reisner Signed-off-by: Sébastien Luttringer Signed-off-by: Allan McRae --- scripts/makepkg.sh.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 9b89c639..99ed44c2 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -1491,7 +1491,7 @@ tidy_install() { local pt for pt in "${PURGE_TARGETS[@]}"; do if [[ ${pt} = "${pt//\/}" ]]; then - find . ! -type d -name "${pt}" -exec rm -f -- '{}' \; + find . ! -type d -name "${pt}" -exec rm -f -- '{}' + else rm -f ${pt} fi @@ -1500,7 +1500,7 @@ tidy_install() { if check_option "libtool" "n"; then msg2 "$(gettext "Removing "%s" files...")" "libtool" - find . ! -type d -name "*.la" -exec rm -f -- '{}' \; + find . ! -type d -name "*.la" -exec rm -f -- '{}' + fi if check_option "staticlibs" "n"; then -- cgit v1.2.3-70-g09d2