Commit f0f51946 authored by Christian Ruppert's avatar Christian Ruppert Committed by Gervase Markham

Bug 856598 - checksetup.pl should exit(1) if it fails checks. r=gerv, a=sgreen.

parent 2b7da8b7
......@@ -51,14 +51,14 @@ my $answers_file = $ARGV[0];
my $silent = $answers_file && !$switch{'verbose'};
print(install_string('header', get_version_and_os()) . "\n") unless $silent;
exit if $switch{'version'};
exit 0 if $switch{'version'};
# Check required --MODULES--
my $module_results = check_requirements(!$silent);
Bugzilla::Install::Requirements::print_module_instructions(
$module_results, !$silent);
exit if !$module_results->{pass};
exit 1 if !$module_results->{pass};
# Break out if checking the modules is all we have been asked to do.
exit if $switch{'check-modules'};
exit 0 if $switch{'check-modules'};
###########################################################################
# Load Bugzilla Modules
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment