X-Git-Url: https://git.donarmstrong.com/?p=spamassassin_config.git;a=blobdiff_plain;f=update_spamassassin;h=1769913350bb46cdcedd7dd138cf55db5874e714;hp=ab9bdc5594abfe160f75058a61a5d8bb648a0b85;hb=aaf90da6a242af52b643f6d2fe733af64c4404ec;hpb=61e045dbf99fefe5f0df962774a095e685a41994 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; }