mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
MFC r202324: In 'make delete-old', use 'exec' to redirect an fd persistently
That is, write 'exec 3<&0' instead of '3<&0'. Due to an sh(1) bug fixed in head in r199953, the latter also persisted, provided that fd 3 was not open before. With newer sh or fd 3 open, it would not delete orphaned catpages.
This commit is contained in:
parent
3716ed4726
commit
74d5ebae0e
1 changed files with 1 additions and 1 deletions
|
|
@ -1248,7 +1248,7 @@ delete-old-files:
|
|||
fi; \
|
||||
done
|
||||
# Remove catpages without corresponding manpages.
|
||||
@3<&0; \
|
||||
@exec 3<&0; \
|
||||
find ${DESTDIR}/usr/share/man/cat* ! -type d | \
|
||||
sed -ep -e's:${DESTDIR}/usr/share/man/cat:${DESTDIR}/usr/share/man/man:' | \
|
||||
while read catpage; do \
|
||||
|
|
|
|||
Loading…
Reference in a new issue