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

View file

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