From: Don Armstrong Date: Thu, 14 Feb 2008 19:13:53 +0000 (+0000) Subject: remove tempdir on failure X-Git-Url: https://git.donarmstrong.com/?p=spamassassin_config.git;a=commitdiff_plain;h=227681e1c30ff47eb5c3a232cdd472e4070e1640;hp=15e8c786455bae45a18d16dfa703ff851b208b46 remove tempdir on failure git-svn-id: svn+ssh://svn.debian.org/svn/pkg-listmaster/trunk/spamassassin_config@151 0b7a5b0c-1f2c-0410-bd74-c376f8064c91 --- diff --git a/update_spamassassin b/update_spamassassin index ab9bdc5..1769913 100755 --- a/update_spamassassin +++ b/update_spamassassin @@ -50,6 +50,7 @@ function report_failure(){ # Hrm; a previous update failed; don't report again until the file # is removed if [ -e "$SACONFIG/failed_update" ]; then + rm -rf "$TMPDIR" exit 0; fi; echo "$FAILUREMESSAGE" >> "$SACONFIG/failed_update" @@ -62,6 +63,7 @@ is fixed. Please fix the problem and then remove $SACONFIG/failed_update EOF + rm -rf "$TMPDIR" exit 1; }