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