Skip to content

Commit 8989995

Browse files
committed
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.
1 parent 0f3c6ca commit 8989995

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tool/fetch-bundled_gems.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@
4040
end
4141

4242
checkout = %w"git -c advice.detachedHead=false checkout"
43-
print %[checking out #{color.notice(c)} (v=#{color.info(v)}]
44-
print %[, r=#{color.info(r)}] if r
45-
puts ") ..."
43+
info = %[, r=#{color.info(r)}] if r
44+
puts "checking out #{color.notice(c)} (v=#{color.info(v)}#{info}) ..."
4645
unless system(*checkout, c, "--", chdir: n)
4746
abort if r or !system(*checkout, v, "--", chdir: n)
4847
end

0 commit comments

Comments
 (0)