summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/modparm.pm6
1 files changed, 2 insertions, 4 deletions
diff --git a/perl-install/modparm.pm b/perl-install/modparm.pm
index d7fc84c0f..ee5fd46ab 100644
--- a/perl-install/modparm.pm
+++ b/perl-install/modparm.pm
@@ -14,10 +14,8 @@ sub parameters {
my ($module) = @_;
my $modinfo = '/sbin/modinfo';
- if (-x $modinfo) {
- $modinfo = '/usr/bin/modinfo';
- -x $modinfo or die _('modinfo is not available');
- }
+ -x $modinfo or $modinfo = '/usr/bin/modinfo';
+ -x $modinfo or die _('modinfo is not available');
if (!$::isStandalone && !$::testing) {
modules::extract_modules('/tmp', $module);