From b2fc6adc782dce52e6b3777acf3964a9e9a34888 Mon Sep 17 00:00:00 2001 From: Alex Malinovich Date: Thu, 17 Nov 2016 20:09:08 -0800 Subject: [PATCH] Make sure wget log gets cleaned up along with other temp files --- plexupdate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexupdate.sh b/plexupdate.sh index 4fd2c78..a160549 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -192,7 +192,7 @@ keypair() { # Setup an exit handler so we cleanup cleanup() { - for F in "${FILE_RAW}" "${FILE_FAILCAUSE}" "${FILE_POSTDATA}" "${FILE_KAKA}" "${FILE_SHA}" "${FILE_LOCAL}" "${FILE_REMOTE}"; do + for F in "${FILE_RAW}" "${FILE_FAILCAUSE}" "${FILE_POSTDATA}" "${FILE_KAKA}" "${FILE_SHA}" "${FILE_LOCAL}" "${FILE_REMOTE}" "${FILE_WGETLOG}"; do rm "$F" 2>/dev/null >/dev/null done }