summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/modparm.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/perl-install/modparm.pm b/perl-install/modparm.pm
index ee5fd46ab..623590bc7 100644
--- a/perl-install/modparm.pm
+++ b/perl-install/modparm.pm
@@ -14,8 +14,10 @@ sub parameters {
my ($module) = @_;
my $modinfo = '/sbin/modinfo';
- -x $modinfo or $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);