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 c795c6a commit 73950a1
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -150,6 +150,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 73950a1

Please sign in to comment.