hooks/pre-pkg/05-prepare-32bit: handle files with spaces
This commit is contained in:
parent
deb18a6640
commit
a105e6b887
1 changed files with 2 additions and 2 deletions
|
@ -46,11 +46,11 @@ hook() {
|
||||||
\) -delete
|
\) -delete
|
||||||
|
|
||||||
# Remove empty dirs.
|
# Remove empty dirs.
|
||||||
for f in $(find ${destdir32} -type d -empty|sort -r); do
|
while IFS= read -r -d '' f; do
|
||||||
_dir="${f##${destdir32}}"
|
_dir="${f##${destdir32}}"
|
||||||
[ -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
|
||||||
done
|
done < <(find ${destdir32} -type d -empty -print0 | sort -uz)
|
||||||
|
|
||||||
# Switch pkg-config files to lib32.
|
# Switch pkg-config files to lib32.
|
||||||
if [ -d ${destdir32}/usr/lib32/pkgconfig ]; then
|
if [ -d ${destdir32}/usr/lib32/pkgconfig ]; then
|
||||||
|
|
Loading…
Reference in a new issue