summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/modparm.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/modparm.pm b/perl-install/modparm.pm
index 623590bc7..d7fc84c0f 100644
--- a/perl-install/modparm.pm
+++ b/perl-install/modparm.pm
@@ -14,7 +14,7 @@ sub parameters {
my ($module) = @_;
my $modinfo = '/sbin/modinfo';
- -x $modinfo or {
+ if (-x $modinfo) {
$modinfo = '/usr/bin/modinfo';
-x $modinfo or die _('modinfo is not available');
}