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:
Nobuyoshi Nakada 2025-09-17 21:49:27 +09:00 committed by Nobuyoshi Nakada
parent 58ece00dd5
commit dd69a75f2a

View File

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