diff options
author | Thomas White <taw@bitwiz.org.uk> | 2013-06-01 14:05:29 -0700 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2013-06-01 14:05:29 -0700 |
commit | d1a49592c0a96e12709c80cebd44a2528bafff9a (patch) | |
tree | ed039c304b4b0ecd8d33acece57a321a35ca3c9d | |
parent | e6e4e70550a8aa451738bc8e4fd982fa886094ed (diff) |
scripts/check-peak-detection: Fix
-rwxr-xr-x | scripts/check-peak-detection | 6 |
1 files changed, 1 insertions, 5 deletions
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 = <FH> ) { 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 = <FH> ) { printf(STDERR "Not showing %s\n", $filename); unlink("list.tmp"); open(TMP, "> list.tmp"); + $in_image = 0; next; } @@ -103,7 +100,6 @@ while ( $line = <FH> ) { if ( $? != 0 ) { exit; } unlink("list.tmp"); open(TMP, "> list.tmp"); - $handled = 1; $in_image = 0; } |