From d1a49592c0a96e12709c80cebd44a2528bafff9a Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sat, 1 Jun 2013 14:05:29 -0700 Subject: scripts/check-peak-detection: Fix --- scripts/check-peak-detection | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'scripts') diff --git a/scripts/check-peak-detection b/scripts/check-peak-detection index 7d9b6660..002aaeca 100755 --- a/scripts/check-peak-detection +++ b/scripts/check-peak-detection @@ -40,21 +40,17 @@ my $indexed; while ( $line = ) { chomp $line; - my $handled = 0; if ( $in_image ) { printf(TMP "%s\n", $line); - $handled = 1; } if ( $line =~ /^Peaks\ from\ peak\ search$/ ) { $in_image = 1; - $handled = 1; } if ( $line =~ /^Image\ filename:\ (.+)$/ ) { $filename = $1; - $handled = 1; } if ( $line =~ /^indexed_by\ =\ (.*)$/ ) { @@ -91,6 +87,7 @@ while ( $line = ) { printf(STDERR "Not showing %s\n", $filename); unlink("list.tmp"); open(TMP, "> list.tmp"); + $in_image = 0; next; } @@ -103,7 +100,6 @@ while ( $line = ) { if ( $? != 0 ) { exit; } unlink("list.tmp"); open(TMP, "> list.tmp"); - $handled = 1; $in_image = 0; } -- cgit v1.2.3