aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
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