diff options
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/modules/parameters.pm | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/perl-install/modules/parameters.pm b/perl-install/modules/parameters.pm index 59829389c..c3b4fb2b6 100644 --- a/perl-install/modules/parameters.pm +++ b/perl-install/modules/parameters.pm @@ -13,9 +13,7 @@ use modules; sub parameters { my ($module) = @_; - my $modinfo = '/sbin/modinfo'; - -x $modinfo or $modinfo = '/usr/bin/modinfo'; - -x $modinfo or die N("modinfo is not available"); + my $modinfo = find { -x $_ } qw(/sbin/modiInfo /usr/bin/modinfo) or die N("modinfo is not available"); if (!$::isStandalone && !$::testing) { modules::extract_modules('/tmp', $module); |