06-shlib-provides.sh: avoid useless use of cat

This commit is contained in:
maxice8 2019-04-13 13:48:09 -03:00 committed by maxice8
parent f5c0feedf6
commit 509f522dac
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ collect_sonames() {
echo "$f" >> ${_tmpfile} echo "$f" >> ${_tmpfile}
done done
if [ -s "${_tmpfile}" ]; then if [ -s "${_tmpfile}" ]; then
cat ${_tmpfile} | tr '\n' ' ' > ${_destdir}/shlib-provides tr '\n' ' ' < "${_tmpfile}" > ${_destdir}/shlib-provides
echo >> ${_destdir}/shlib-provides echo >> ${_destdir}/shlib-provides
fi fi
rm -f ${_tmpfile} rm -f ${_tmpfile}