summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/detect_devices.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index c2560006c..2f3909af5 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -570,7 +570,7 @@ sub getNet() {
sub getUPS() {
# MGE serial PnP devices:
- my @usb_devices = map { ($_->{name} = $_->{description}) =~ s/.*\|// } usb_probe();
+ my @usb_devices = map { ($_->{name} = $_->{description}) =~ s/.*\|//; $_ } usb_probe();
(map {
$_->{port} = $_->{DEVICE};