Revision 0a1b56cce4bfc242f50b097bd4b6c570d6497eab authored by Nathan Nutter on 02 November 2012, 20:31:55 UTC, committed by Gerrit Code Review on 02 November 2012, 20:31:55 UTC
2 parent s 05b466e + 83c3daf
Raw File
filter_bqm_for_errors
#!/usr/bin/env genome-perl

use strict;
use warnings;

my $found_error = 0;
my @stdin;
while (my $stdin = <>) {
    push @stdin, $stdin;
    $found_error = 1 if ($stdin =~ /ERROR:/);
}
$found_error = 1 if ($stdin[-1] !~ /^COMMITTED$/);

if ($found_error) {
    print @stdin;
}
back to top