]> wagnertech.de Git - mfinanz.git/blobdiff - scripts/installation_check.pl
countries defaults managed
[mfinanz.git] / scripts / installation_check.pl
index 1b645733c774780ac8a8a4163f139359c8c0a1ba..f7c76fb7c2542477ff24f0be4939e91dfa39bc88 100755 (executable)
@@ -71,9 +71,7 @@ if (!defined $check{a}
 }
 
 if ($check{a}) {
-  foreach my $check (keys %check) {
-    $check{$check} = 1 unless defined $check{$check};
-  }
+  $check{$_} //= 1 for qw(o d l r);
 }
 
 
@@ -123,7 +121,7 @@ EOL
   }
 }
 
-if (@missing_modules && $apt && !$check{s}) {
+if (@missing_modules && ($check{a} || $apt && !$check{s})) {
   print "\nHere are some sample installation lines, choose one appropriate for your system:\n\n";
   local $Text::Wrap::separator = " \\\n";
 
@@ -273,12 +271,12 @@ sub print_result {
 
 sub print_line {
   my ($text, $res, $color) = @_;
-  return if $check{s};
+  return if $check{s} && !$check{a};
   print $text, " ", ('.' x (78 - length($text) - length($res))), " ", mycolor($res, $color), $/;
 }
 
 sub print_header {
-  return if $check{s};
+  return if $check{s} && !$check{a};
   print $/;
   print "$_[0]:", $/;
 }