xbps-src: consistently use read -r when reading file paths

This commit is contained in:
Duncaen 2023-08-31 14:17:24 +02:00
parent 9e68e66a04
commit 65c9ade5e4
No known key found for this signature in database
GPG key ID: 335C1D17EC3D6E35
6 changed files with 6 additions and 8 deletions

View file

@ -2,7 +2,7 @@
hook() {
if [ -d "${PKGDESTDIR}" ]; then
find "${PKGDESTDIR}" -mindepth 1 -type d -empty -print -delete|sort -r|while read f; do
find "${PKGDESTDIR}" -mindepth 1 -type d -empty -print -delete|sort -r|while read -r f; do
_dir="${f##${PKGDESTDIR}}"
msg_warn "$pkgver: removed empty dir: ${_dir}\n"
done