# HG changeset patch # User Matthias Förste # Date 1364890206 -7200 # Node ID a154e6fd3163d7638183663dd9ccbbf715c99085 # Parent 083486eb053d6eb876ea56e4802c34d7e83193c6 fix an error that could cause an rsnapshot run to always be found diff -r 083486eb053d -r a154e6fd3163 check_rsnapshot.pl --- a/check_rsnapshot.pl Tue Apr 02 10:05:32 2013 +0200 +++ b/check_rsnapshot.pl Tue Apr 02 10:10:06 2013 +0200 @@ -130,8 +130,8 @@ or print "RSNAPSHOT CRITICAL: $logfile - $!\n" and exit $ERRORS{CRITICAL}; while () { + next unless (/^\[$date/); $found_in_file = $logfile; - next unless (/^\[$date/); if (/^\[$date:.*ERROR/) { $error = $_; last;