xbps-src: Use @Gottox way to read path names
This commit is contained in:
parent
5b066f3564
commit
87a5f1ecba
1 changed files with 1 additions and 2 deletions
|
@ -1,8 +1,7 @@
|
|||
# This hooks removes empty dirs and warns about them.
|
||||
|
||||
hook() {
|
||||
for f in $(find ${PKGDESTDIR} -type d -empty|sort -r|tr " " "|"); do
|
||||
f="${f//|/ }"
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue