summaryrefslogtreecommitdiffstats
path: root/scripts/library/README
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2016-03-21 02:49:16 +0100
committerAllan McRae <allan@archlinux.org>2016-05-05 05:56:06 +0200
commita66cba1b08cc7c9f55efcfda6f4ab3cafff6b874 (patch)
treebe4376252e35d61e16cea46cc27e2513be6beb33 /scripts/library/README
parentd4f499f5638a68a3b7e17c5171aabdf535b79bd4 (diff)
downloadpacman-a66cba1b08cc7c9f55efcfda6f4ab3cafff6b874.tar.gz
pacman-a66cba1b08cc7c9f55efcfda6f4ab3cafff6b874.tar.xz
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 baf1ff64e6ea23e93f307480480d87159cd2e487)
Diffstat (limited to 'scripts/library/README')
0 files changed, 0 insertions, 0 deletions