From: Sven Schöling Date: Thu, 16 Feb 2012 12:53:05 +0000 (+0100) Subject: installationcheck: defaultrun erkennung verbessert. (Hat auch auf -ro getriggert) X-Git-Tag: release-2.7.0rc1~37^2~3 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=38978067111c7a8c0fdaa37c445c46bec3694f90;p=kivitendo-erp.git installationcheck: defaultrun erkennung verbessert. (Hat auch auf -ro getriggert) --- diff --git a/scripts/installation_check.pl b/scripts/installation_check.pl index 03b0ae574..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};