mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
fixed common line filter
Merge of master-melb:xfs-cmds:26836a by kenmcd. fixed common line filter
This commit is contained in:
@@ -40,12 +40,12 @@ _cleanup()
|
||||
common_line_filter()
|
||||
{
|
||||
perl -ne 'if (/.*:(.*)/) {
|
||||
if ( "$last_line" ne "$1" ) { print $_; $first_match=1; }
|
||||
if ( "$last_line" ne "$1" ) { print "$_"; $first_match=1; }
|
||||
elsif ( $first_match==1 ) { print "*\n"; $first_match=0; }
|
||||
$last_line="$1";
|
||||
}
|
||||
else {
|
||||
print $_
|
||||
print $_; $last_line=$_;
|
||||
}'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user