pacman/scripts/libmakepkg/tidy
Allan McRae a66cba1b08 libmakepkg: ensure emptydir find command acts on individual directories
Using "-exec command {} +" systax exits on any error.  Such errors occur when
running rmdir on a non-empty directory.  Switch to "{} ;" syntax instead which
avoids exiting before the find command is completed.

Fixes FS#48515.

Note, we can not use "-empty" in the find command because it is not supported
by Busybox find, and the "--ignore-fail-on-non-empty" flag for rmdir is not
available on BSD rmdir variants.

Signed-off-by: Allan McRae <allan@archlinux.org>
(cherry picked from commit baf1ff64e6)
2016-05-05 13:56:06 +10:00
..
docs.sh.in Update copyright years for 2016 2016-01-04 13:27:08 +10:00
emptydirs.sh.in libmakepkg: ensure emptydir find command acts on individual directories 2016-05-05 13:56:06 +10:00
libtool.sh.in Update copyright years for 2016 2016-01-04 13:27:08 +10:00
optipng.sh.in Update copyright years for 2016 2016-01-04 13:27:08 +10:00
purge.sh.in Update copyright years for 2016 2016-01-04 13:27:08 +10:00
staticlibs.sh.in Update copyright years for 2016 2016-01-04 13:27:08 +10:00
strip.sh.in Update copyright years for 2016 2016-01-04 13:27:08 +10:00
upx.sh.in Update copyright years for 2016 2016-01-04 13:27:08 +10:00
zipman.sh.in Update copyright years for 2016 2016-01-04 13:27:08 +10:00