diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2025-09-17 21:49:27 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu.nakada@gmail.com> | 2025-09-17 22:42:49 +0900 |
| commit | dd69a75f2abfe280a62545a4f827bca4d2df1789 (patch) | |
| tree | 2a12f4dbdcc2f25aca0a52e310c981e521292432 | |
| parent | 58ece00dd50ffe92ba142fb51b0adc7d5a356752 (diff) | |
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.
| -rwxr-xr-x | tool/fetch-bundled_gems.rb | 5 |
1 files 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 |
