Merge pull request #1425 from pullmoll/master

xbps-src: fix handling of path names containing spaces
This commit is contained in:
Juan RP 2015-04-27 16:21:29 +02:00
commit dee8140732

View file

@ -1,7 +1,7 @@
# This hooks removes empty dirs and warns about them.
hook() {
for f in $(find ${PKGDESTDIR} -type d -empty|sort -r); do
find "${PKGDESTDIR}" -type d -empty|sort -r|while read f; do
_dir="${f##${PKGDESTDIR}}"
[ -z "${_dir}" ] && continue
rmdir --ignore-fail-on-non-empty -p "$f" &>/dev/null