Skip to content

Commit

Permalink
skip empty files
Browse files Browse the repository at this point in the history
  • Loading branch information
guillomovitch committed Aug 10, 2012
1 parent 1d1de3f commit 40eb9bc
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -238,6 +238,7 @@ sub _getScreensFromUnix {
if (-d '/sys/devices') {
my $wanted = sub {
return unless $_ eq 'edid';
return unless -s $File::Find::name;
my $edid = getAllLines(file => $File::Find::name);
push @screens, { edid => $edid } if $edid;
};
Expand Down

0 comments on commit 40eb9bc

Please sign in to comment.