Make brew ruby exit with the status of the executed command.

This commit is contained in:
Markus Reiter 2019-07-28 02:14:35 +02:00
parent 6db1c7383f
commit efb6172a18

View File

@ -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