aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Ruppert <idl0r@gentoo.org>2014-07-10 09:31:35 +0100
committerGervase Markham <gerv@gerv.net>2014-07-10 09:31:35 +0100
commitf0f51946bab6b9c85c5ebd6fc737538ce967af59 (patch)
tree698de504405753951d26986c8ea01672d225dd72
parent2b7da8b753521f803556416c0f01d6910dc31d76 (diff)
downloadbugs-f0f51946bab6b9c85c5ebd6fc737538ce967af59.tar
bugs-f0f51946bab6b9c85c5ebd6fc737538ce967af59.tar.gz
bugs-f0f51946bab6b9c85c5ebd6fc737538ce967af59.tar.bz2
bugs-f0f51946bab6b9c85c5ebd6fc737538ce967af59.tar.xz
bugs-f0f51946bab6b9c85c5ebd6fc737538ce967af59.zip
Bug 856598 - checksetup.pl should exit(1) if it fails checks. r=gerv, a=sgreen.
-rwxr-xr-xchecksetup.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/checksetup.pl b/checksetup.pl
index c93071b88..145faf04e 100755
--- a/checksetup.pl
+++ b/checksetup.pl
@@ -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