diff options
Diffstat (limited to 'Echolot')
-rw-r--r-- | Echolot/Config.pm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Echolot/Config.pm b/Echolot/Config.pm index 5ef4fda..547d812 100644 --- a/Echolot/Config.pm +++ b/Echolot/Config.pm @@ -316,9 +316,11 @@ sub check_binaries() { unless -x $path; } else { my $found = 0; - for my $pathelem (split /:/, $ENV{'PATH'}) { - $found = $pathelem, last - if -e $pathelem.'/'.$path; + if (defined $ENV{'PATH'}) { + for my $pathelem (split /:/, $ENV{'PATH'}) { + $found = $pathelem, last + if -e $pathelem.'/'.$path; + }; }; if ($found) { Echolot::Log::warn ("$bin binary $found/$path is not executeable") |