xbps-src: fix handling of path names containing spaces
This commit is contained in:
parent
f9a3e8058d
commit
5b066f3564
1 changed files with 2 additions and 1 deletions
|
@ -1,7 +1,8 @@
|
|||
# This hooks removes empty dirs and warns about them.
|
||||
|
||||
hook() {
|
||||
for f in $(find ${PKGDESTDIR} -type d -empty|sort -r); do
|
||||
for f in $(find ${PKGDESTDIR} -type d -empty|sort -r|tr " " "|"); do
|
||||
f="${f//|/ }"
|
||||
_dir="${f##${PKGDESTDIR}}"
|
||||
[ -z "${_dir}" ] && continue
|
||||
rmdir --ignore-fail-on-non-empty -p "$f" &>/dev/null
|
||||
|
|
Loading…
Reference in a new issue