aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2009-11-11 18:51:05 +0000
committerMax Howell2009-11-11 18:56:37 +0000
commit627034c441ccd6d38375fd94997ebf27c9282737 (patch)
tree6d250ab73e0d46ade0d95d00c4a9633b94d2908b
parent5e915653d7276eef7a4bb78450d452d024b02ca0 (diff)
downloadbrew-627034c441ccd6d38375fd94997ebf27c9282737.tar.bz2
Re-raise SystemExit so the correct exit code is set
The reason we rescue this exception at all is because otherwise our general purpose Exception handler catches it.
-rwxr-xr-xbin/brew1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/brew b/bin/brew
index 8e2987a2f..8cce5a2bf 100755
--- a/bin/brew
+++ b/bin/brew
@@ -244,6 +244,7 @@ rescue UsageError
abort ARGV.usage
rescue SystemExit
puts "Kernel.exit" if ARGV.verbose?
+ raise
rescue Interrupt => e
puts # seemingly a newline is typical
exit 130