[Logcheck-commits] CVS logcheck/src

CVS User maks-guest logcheck-devel@lists.alioth.debian.org
Mon, 07 Jun 2004 09:30:25 -0600


Update of /cvsroot/logcheck/logcheck/src
In directory haydn:/tmp/cvs-serv29428/src

Modified Files:
	logcheck 
Log Message:

greplogouput bites again:
when cleaning up its duplicated code and calling cleancheck,
we should be shure that's actually really an ignore file there!
tested on my workstation, will feed back bug reporters.


--- /cvsroot/logcheck/logcheck/src/logcheck	2004/06/06 11:15:46	1.53
+++ /cvsroot/logcheck/logcheck/src/logcheck	2004/06/07 15:30:25	1.54
@@ -22,7 +22,7 @@
 # along with Logcheck; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-# $Id: logcheck,v 1.53 2004/06/06 11:15:46 maks-guest Exp $
+# $Id: logcheck,v 1.54 2004/06/07 15:30:25 maks-guest Exp $
 
 
 # Set the umask
@@ -304,7 +304,9 @@
 		# Remove any  entries already reported
 		for file in $(ls $raise/ | grep -v '^logcheck') ; do
 		    debug "Cleaning logcheck: $file"
-	            cleanchecked "$ignore/$file"
+		    if[ -f "$ingore/$file" ]; then
+	                cleanchecked "$ignore/$file"
+		    fi
 		done
 	    fi