Make brew ruby exit with the status of the executed command.
This commit is contained in:
parent
6db1c7383f
commit
efb6172a18
@ -23,9 +23,13 @@ module Homebrew
|
||||
def ruby
|
||||
ruby_args.parse
|
||||
|
||||
begin
|
||||
safe_system ENV["HOMEBREW_RUBY_PATH"],
|
||||
"-I", $LOAD_PATH.join(File::PATH_SEPARATOR),
|
||||
"-rglobal", "-rdev-cmd/irb",
|
||||
*ARGV
|
||||
rescue ErrorDuringExecution => e
|
||||
exit e.status.exitstatus
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user