From 7138e04fa459901ae0ef2e687d3ad8a9790cdaff Mon Sep 17 00:00:00 2001 From: Jon Shaulis Date: Wed, 14 Sep 2016 22:20:39 -0400 Subject: [PATCH] Make sure that the emitted sha file gets cleaned up --- plexupdate.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/plexupdate.sh b/plexupdate.sh index d145eae..570911b 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -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