From 6b9048c0c7d7d2522ba9d8c338f6aabed5ec4c01 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Mon, 31 Oct 2011 16:56:46 +0000 Subject: [PATCH] * fix trap and function dash incompatible calls git-svn-id: svn+ssh://svn.debian.org/svn/pkg-listmaster/trunk/spamassassin_config@387 0b7a5b0c-1f2c-0410-bd74-c376f8064c91 --- update_spamassassin | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/update_spamassassin b/update_spamassassin index 14f070b..3a15e88 100755 --- a/update_spamassassin +++ b/update_spamassassin @@ -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" ] && -- 2.39.2