From 227681e1c30ff47eb5c3a232cdd472e4070e1640 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Thu, 14 Feb 2008 19:13:53 +0000 Subject: [PATCH 1/1] remove tempdir on failure git-svn-id: svn+ssh://svn.debian.org/svn/pkg-listmaster/trunk/spamassassin_config@151 0b7a5b0c-1f2c-0410-bd74-c376f8064c91 --- update_spamassassin | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.39.2