From 733c72e6f03673151b9f01923d783e24fb66fb82 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 2 Jun 2024 17:21:22 +0900 Subject: [PATCH] Show destination directory after installation Due to the length of the list of gems to install, the message at the beginning of the installation scrolls out. --- tool/rbinstall.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index 63f4beb943..db01e0b79d 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -1205,7 +1205,6 @@ installs = $install.map do |inst| end installs.flatten! installs -= $exclude.map {|exc| $install_procs[exc]}.flatten -puts "Installing to #$destdir" unless installs.empty? installs.each do |block| dir = Dir.pwd begin @@ -1214,5 +1213,9 @@ installs.each do |block| Dir.chdir(dir) end end +unless installs.empty? or $destdir.empty? + require_relative 'lib/colorize' + puts "Installed under #{Colorize.new.info($destdir)}" +end # vi:set sw=2: