]> git.donarmstrong.com Git - spamassassin_config.git/blobdiff - update_spamassassin
* tweak the diploma rules
[spamassassin_config.git] / update_spamassassin
index ab9bdc5594abfe160f75058a61a5d8bb648a0b85..1769913350bb46cdcedd7dd138cf55db5874e714 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
     # 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"
        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
 Please fix the problem and then remove
 $SACONFIG/failed_update
 EOF
+    rm -rf "$TMPDIR"
     exit 1;
 }
 
     exit 1;
 }