diff options
Diffstat (limited to 'perl-install/scanner.pm')
-rwxr-xr-x | perl-install/scanner.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/scanner.pm b/perl-install/scanner.pm index 1bc381c9d..a820bd41d 100755 --- a/perl-install/scanner.pm +++ b/perl-install/scanner.pm @@ -65,7 +65,7 @@ sub detect { }}; ++$i; } - foreach ({$_->{media_type} =~ /scanner/ } detect_devices::getSCSI()) { + foreach (grep {$_->{media_type} =~ /scanner/ } detect_devices::getSCSI()) { push @res, { port => "/dev/usb/scanner$i", val => { DESCRIPTION => $_->{info} }, }; |