mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-07-16 02:02:58 -07:00
Move trap call to cleanup function
This commit is contained in:
parent
7138e04fa4
commit
89cc3ff3f9
1 changed files with 1 additions and 1 deletions
|
@ -365,6 +365,7 @@ function cleanup {
|
|||
rm /tmp/raw 2>/dev/null >/dev/null
|
||||
rm /tmp/failcause 2>/dev/null >/dev/null
|
||||
rm /tmp/kaka 2>/dev/null >/dev/null
|
||||
rm "${DOWNLOADDIR}/${FILENAME}.sha" 2>/dev/null >/dev/null
|
||||
}
|
||||
trap cleanup EXIT
|
||||
|
||||
|
@ -471,7 +472,6 @@ 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue