summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/run_program.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/run_program.pm b/perl-install/run_program.pm
index f74edb5b6..b1b871076 100644
--- a/perl-install/run_program.pm
+++ b/perl-install/run_program.pm
@@ -104,6 +104,8 @@ sub raw {
log::l($_[0]);
c::_exit(128);
}
+ my $binary = ref $name ? $name->[0] : $name;
+ die_exit "program not found: $binary" if !find { -x $_ } $binary, map { "$_/$binary" } split(':', $ENV{PATH});
if ($stderr && $stderr eq 'STDERR') {
} elsif ($stderr) {
$stderr_mode =~ s/2//;