Make sure that the emitted sha file gets cleaned up

This commit is contained in:
Jon Shaulis 2016-09-14 22:20:39 -04:00
commit 7138e04fa4

View file

@ -471,6 +471,7 @@ if [ $? -ne 0 ]; then
fi
echo "${CHECKSUM} ${DOWNLOADDIR}/${FILENAME}" >"${DOWNLOADDIR}/${FILENAME}.sha"
trap "rm ${DOWNLOADDIR}/${FILENAME}.sha" EXIT
if [ "${PRINT_URL}" = "yes" ]; then
if [ "${QUIET}" = "yes" ]; then