1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-05-12 16:56:14 +02:00

Directly pipe checksum into comparison tool in download function

Don't create unneccessary temporary files.

Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
David Oberhollenzer 2018-12-29 13:07:53 +01:00
parent 1d8a794e1f
commit f9a6cc2e73

View file

@ -10,11 +10,7 @@ fetch_package() {
-L "$URL/$TARBALL"
fi
pushd "$PKGDOWNLOADDIR" > /dev/null
echo "$SHA256SUM ${TARBALL}" > "${TARBALL}.sha256"
sha256sum -c --quiet "${TARBALL}.sha256"
rm "${TARBALL}.sha256"
popd > /dev/null
echo "$SHA256SUM $PKGDOWNLOADDIR/${TARBALL}" | sha256sum -c --quiet "-"
if [ ! -e "$PKGSRCDIR/$SRCDIR" ]; then
local LOGFILE="$PKGLOGDIR/${PKGNAME}-prepare.log"