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.
This commit is contained in:
Nobuyoshi Nakada 2024-06-02 17:21:22 +09:00
parent 07a8d02c0c
commit 733c72e6f0
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

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