mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-08 05:42:58 +02:00
Merge pull request #1410 from pullmoll/master
xbps-src: Fix read loop for empty dirs; closes #1409
This commit is contained in:
commit
85eb3dde1f
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +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); do
|
find ${PKGDESTDIR} -type d -empty -print0|sort -z -r|while IFS="" read f; do
|
||||||
_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
|
||||||
|
|
Loading…
Add table
Reference in a new issue