diff options
author | Sébastien Luttringer <seblu@seblu.net> | 2013-03-05 02:03:44 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-03-07 06:38:48 +0100 |
commit | 6831a5f4b1bd05031fc4033d0d7f3328723dfd73 (patch) | |
tree | 2b4f88f21151b8537a1c5918a5e7e256d09d70f5 /scripts/makepkg.sh.in | |
parent | a03f5f55cd46cc69f01a04be2114056decc9beb6 (diff) | |
download | pacman-6831a5f4b1bd05031fc4033d0d7f3328723dfd73.tar.gz pacman-6831a5f4b1bd05031fc4033d0d7f3328723dfd73.tar.xz |
makepkg: Avoid find to fork for each rm call
Reported-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Sébastien Luttringer <seblu@seblu.net>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts/makepkg.sh.in')
-rw-r--r-- | scripts/makepkg.sh.in | 4 |
1 files changed, 2 insertions, 2 deletions
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 |