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
begin
safe_system ENV["HOMEBREW_RUBY_PATH"], safe_system ENV["HOMEBREW_RUBY_PATH"],
"-I", $LOAD_PATH.join(File::PATH_SEPARATOR), "-I", $LOAD_PATH.join(File::PATH_SEPARATOR),
"-rglobal", "-rdev-cmd/irb", "-rglobal", "-rdev-cmd/irb",
*ARGV *ARGV
rescue ErrorDuringExecution => e
exit e.status.exitstatus
end
end end
end end