]> git.donarmstrong.com Git - spamassassin_config.git/blobdiff - update_spamassassin
Fix rule
[spamassassin_config.git] / update_spamassassin
index 14f070b100d14cf8a00a04ed004dba59cd1124b8..3a15e883ca5d63070014862da8be58cd2f0b2d87 100755 (executable)
@@ -48,14 +48,14 @@ else
     echo $$ > "$SACONFIG/.update_spamassassin";
 fi;
 
-function remove_pidfile(){
+remove_pidfile () {
     rm "$SACONFIG/.update_spamassassin";
 }
 
-trap remove_pidfile ERR;
+trap remove_pidfile 0;
 
 FAILUREMESSAGE="";
-function report_failure(){
+report_failure () {
     # Hrm; a previous update failed; don't report again until the file
     # is removed or it's more than a day old
     if [ -e "$SACONFIG/failed_update" ] &&