X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/ef540e3be2813445e92e138f6e9a9b614aff703c..2acad5a65979321f2bd7ef3d51c22ddbe077d99d:/scripts/installation_check.pl diff --git a/scripts/installation_check.pl b/scripts/installation_check.pl index c132310ec..520b4f1c2 100755 --- a/scripts/installation_check.pl +++ b/scripts/installation_check.pl @@ -29,11 +29,15 @@ GetOptions( ); # if nothing is requested check "required" -$check{r} = 1 unless defined $check{a} || - defined $check{l} || - defined $check{o} || - defined $check{d}; -my $default_run ='1' if $check{r}; # no parameter, therefore print a note after default run +my $default_run; +if (!defined $check{a} + && !defined $check{l} + && !defined $check{o} + && !defined $check{d}) { + $check{r} = 1; + $default_run ='1'; # no parameter, therefore print a note after default run +} + if ($check{a}) { foreach my $check (keys %check) { $check{$check} = 1 unless defined $check{$check}; @@ -194,10 +198,7 @@ sub print_result { sub print_line { my ($text, $res, $color) = @_; - print $text, " ", ('.' x (78 - length($text) - length($res))); - print mycolor($res, $color); - print "\n"; - return; + print $text, " ", ('.' x (78 - length($text) - length($res))), " ", mycolor($res, $color), $/; } sub print_header {