From dd69a75f2abfe280a62545a4f827bca4d2df1789 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 17 Sep 2025 21:49:27 +0900 Subject: [PATCH] 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. --- tool/fetch-bundled_gems.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tool/fetch-bundled_gems.rb b/tool/fetch-bundled_gems.rb index e46c5bdc1c..127ea236f3 100755 --- a/tool/fetch-bundled_gems.rb +++ b/tool/fetch-bundled_gems.rb @@ -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