aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2009-08-23 17:56:27 +0100
committerMax Howell2009-08-24 01:04:54 +0100
commit4671526d70d33de7e44d42a28ce2eee912783dc6 (patch)
tree4723338006e46231d0a98fca441628feae882a1b /Library
parentf0c7e944bb4d958084840942cbd89cb96abd177f (diff)
downloadbrew-4671526d70d33de7e44d42a28ce2eee912783dc6.tar.bz2
Raise a SystemExit exception to prevent backtrace
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/utils.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 06b9cab21..2d5cb20f9 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -43,11 +43,9 @@ end
def interactive_shell
pid=fork
- if pid.nil?
- exec ENV['SHELL']
- else
- Process.wait pid
- end
+ exec ENV['SHELL'] if pid.nil?
+ Process.wait pid
+ raise SystemExit, "Aborting due to non-zero exit status" if $? != 0
end
# Kernel.system but with exceptions