xbps-src: Use @Gottox way to read path names
This commit is contained in:
@@ -1,8 +1,7 @@
|
|||||||
# This hooks removes empty dirs and warns about them.
|
# This hooks removes empty dirs and warns about them.
|
||||||
|
|
||||||
hook() {
|
hook() {
|
||||||
for f in $(find ${PKGDESTDIR} -type d -empty|sort -r|tr " " "|"); do
|
find "${PKGDESTDIR}" -type d -empty|sort -r|while read f; do
|
||||||
f="${f//|/ }"
|
|
||||||
_dir="${f##${PKGDESTDIR}}"
|
_dir="${f##${PKGDESTDIR}}"
|
||||||
[ -z "${_dir}" ] && continue
|
[ -z "${_dir}" ] && continue
|
||||||
rmdir --ignore-fail-on-non-empty -p "$f" &>/dev/null
|
rmdir --ignore-fail-on-non-empty -p "$f" &>/dev/null
|
||||||
|
|||||||
Reference in New Issue
Block a user