xbps-src: consistently use read -r when reading file paths
This commit is contained in:
parent
9e68e66a04
commit
65c9ade5e4
6 changed files with 6 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue