remove tempdir on failure
authorDon Armstrong <don@debian.org>
Thu, 14 Feb 2008 19:13:53 +0000 (19:13 +0000)
committerDon Armstrong <don@debian.org>
Thu, 14 Feb 2008 19:13:53 +0000 (19:13 +0000)
git-svn-id: svn+ssh://svn.debian.org/svn/pkg-listmaster/trunk/spamassassin_config@151 0b7a5b0c-1f2c-0410-bd74-c376f8064c91

update_spamassassin

index ab9bdc5..1769913 100755 (executable)
@@ -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;
 }