summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-06-02 17:21:22 +0900
committerNobuyoshi Nakada <[email protected]>2024-06-02 17:21:22 +0900
commit733c72e6f03673151b9f01923d783e24fb66fb82 (patch)
tree05a1ff7811949a07fa85d61c26927c2604d349b0
parent07a8d02c0c3b7b59dd16b8baccf32958fa1cf420 (diff)
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.
-rwxr-xr-xtool/rbinstall.rb5
1 files changed, 4 insertions, 1 deletions
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: