diff options
Diffstat (limited to 'fml/libexec/fmlwrapper')
| -rwxr-xr-x | fml/libexec/fmlwrapper | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/fml/libexec/fmlwrapper b/fml/libexec/fmlwrapper index 5facd77b..dfc9443f 100755 --- a/fml/libexec/fmlwrapper +++ b/fml/libexec/fmlwrapper @@ -88,19 +88,23 @@ sub Bootstrap # debug; if ($0 =~ /fmlwrapper/) { - use Data::Dumper; print Dumper( $main_cf ); exit 1; + use Data::Dumper; print Dumper( $main_cf ); sleep 5; } # 5. o.k. here we go! - require "$libexec_dir/fml"; - ProcessSwitch( - { - cf_list => \@cf, - myname => $myname, - ml_home_dir => $ml_home_dir, - options => \%options, - }); - + if (-f "$libexec_dir/fml") { + require "$libexec_dir/fml"; + ProcessSwitch( + { + cf_list => \@cf, + myname => $myname, + ml_home_dir => $ml_home_dir, + options => \%options, + }); + } + else { + croak("$libexec_dir/fml is not found."); + } } |
