mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
fetch-bundled_gems.rb: Fix extraneous newline
Print a concatenated string instead of `print`ing multiple strings, since `$\` is set to `"\n"` because of `-l` command line option.
This commit is contained in:
parent
58ece00dd5
commit
dd69a75f2a
@ -40,9 +40,8 @@ else
|
||||
end
|
||||
|
||||
checkout = %w"git -c advice.detachedHead=false checkout"
|
||||
print %[checking out #{color.notice(c)} (v=#{color.info(v)}]
|
||||
print %[, r=#{color.info(r)}] if r
|
||||
puts ") ..."
|
||||
info = %[, r=#{color.info(r)}] if r
|
||||
puts "checking out #{color.notice(c)} (v=#{color.info(v)}#{info}) ..."
|
||||
unless system(*checkout, c, "--", chdir: n)
|
||||
abort if r or !system(*checkout, v, "--", chdir: n)
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user