diff options
author | maxice8 <thinkabit.ukim@gmail.com> | 2019-04-06 14:13:48 +0000 |
---|---|---|
committer | maxice8 <30738253+maxice8@users.noreply.github.com> | 2019-04-06 14:19:52 +0000 |
commit | a105e6b887d5e3c34f9f333f9f22887002251d6e (patch) | |
tree | 9155cc7e2aedc7f6a9a9f5a9d5bea405ec939d86 | |
parent | deb18a66405314abc99f009b7e0d3a2ab4336046 (diff) | |
download | void-packages-a105e6b887d5e3c34f9f333f9f22887002251d6e.tar void-packages-a105e6b887d5e3c34f9f333f9f22887002251d6e.tar.gz void-packages-a105e6b887d5e3c34f9f333f9f22887002251d6e.tar.bz2 void-packages-a105e6b887d5e3c34f9f333f9f22887002251d6e.tar.lz void-packages-a105e6b887d5e3c34f9f333f9f22887002251d6e.tar.xz void-packages-a105e6b887d5e3c34f9f333f9f22887002251d6e.tar.zst void-packages-a105e6b887d5e3c34f9f333f9f22887002251d6e.zip |
hooks/pre-pkg/05-prepare-32bit: handle files with spaces
-rw-r--r-- | common/hooks/pre-pkg/05-prepare-32bit.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/hooks/pre-pkg/05-prepare-32bit.sh b/common/hooks/pre-pkg/05-prepare-32bit.sh index 8440b3d36a8..5140c447a62 100644 --- a/common/hooks/pre-pkg/05-prepare-32bit.sh +++ b/common/hooks/pre-pkg/05-prepare-32bit.sh @@ -46,11 +46,11 @@ hook() { \) -delete # Remove empty dirs. - for f in $(find ${destdir32} -type d -empty|sort -r); do + while IFS= read -r -d '' f; do _dir="${f##${destdir32}}" [ -z "${_dir}" ] && continue rmdir --ignore-fail-on-non-empty -p "$f" &>/dev/null - done + done < <(find ${destdir32} -type d -empty -print0 | sort -uz) # Switch pkg-config files to lib32. if [ -d ${destdir32}/usr/lib32/pkgconfig ]; then |