From c585132c588eb6e213b343359851f4a1b03a672c Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sun, 20 Jun 2004 23:19:49 +0000 Subject: log error if a tool isn't executable --- perl-install/standalone/service_harddrake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'perl-install/standalone') diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake index cbca4beb7..abbe67142 100755 --- a/perl-install/standalone/service_harddrake +++ b/perl-install/standalone/service_harddrake @@ -116,7 +116,11 @@ foreach my $hw_class (@harddrake::data::tree) { } next if $is_globetrotter && !$hw_class->{automatic}; - next unless -x first(split /\s+/, $configurator_pool[0]); + next unless $configurator_pool[0]; + if (!-x first(split /\s+/, $configurator_pool[0])) { + log::explanations(qw(skip $Ident configuration sincecannot "$configurator" isn't executable)); + next; + } my ($pid, $no, $res); if (!$hw_class->{automatic}) { $SIG{ALRM} = sub { $no = 1; kill 15, $pid }; -- cgit v1.2.1