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

@ -9,8 +9,7 @@ hook() {
fi
# rewrite symlinks
find $mandir -type l -regex '.*\.\(gz\|bz2\)' | while read f
do
find $mandir -type l -regex '.*\.\(gz\|bz2\)' | while read -r f; do
lnkat=$(readlink "$f")
ln -s ${lnkat%.*} ${f%.*}
rm $f