diff options
author | Duncaen <duncaen@voidlinux.org> | 2023-08-31 12:17:24 +0000 |
---|---|---|
committer | Duncaen <duncaen@voidlinux.org> | 2023-08-31 12:18:14 +0000 |
commit | 65c9ade5e44afcf8040f5459e59b9f3819879fca (patch) | |
tree | 8c9300b24538533617ec532423b73215d539b30c /common/hooks/post-install/00-compress-info-files.sh | |
parent | 9e68e66a04cf74153e82b6b9bc5b0e0ef5bfba5a (diff) | |
download | void-packages-65c9ade5e44afcf8040f5459e59b9f3819879fca.tar void-packages-65c9ade5e44afcf8040f5459e59b9f3819879fca.tar.gz void-packages-65c9ade5e44afcf8040f5459e59b9f3819879fca.tar.bz2 void-packages-65c9ade5e44afcf8040f5459e59b9f3819879fca.tar.lz void-packages-65c9ade5e44afcf8040f5459e59b9f3819879fca.tar.xz void-packages-65c9ade5e44afcf8040f5459e59b9f3819879fca.tar.zst void-packages-65c9ade5e44afcf8040f5459e59b9f3819879fca.zip |
xbps-src: consistently use read -r when reading file paths
Diffstat (limited to 'common/hooks/post-install/00-compress-info-files.sh')
-rw-r--r-- | common/hooks/post-install/00-compress-info-files.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/common/hooks/post-install/00-compress-info-files.sh b/common/hooks/post-install/00-compress-info-files.sh index ee394a8c901..0a1bec5360c 100644 --- a/common/hooks/post-install/00-compress-info-files.sh +++ b/common/hooks/post-install/00-compress-info-files.sh @@ -15,8 +15,7 @@ hook() { rm -f ${PKGDESTDIR}/usr/share/info/dir fi - find ${PKGDESTDIR}/usr/share/info -type f -follow | while read f - do + find ${PKGDESTDIR}/usr/share/info -type f -follow | while read -r f; do j=$(echo "$f"|sed -e "$fpattern") [ "$j" = "" ] && continue [ "$j" = "/usr/share/info/dir" ] && continue |