diff options
author | Nobuyoshi Nakada <[email protected]> | 2024-06-02 17:21:22 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2024-06-02 17:21:22 +0900 |
commit | 733c72e6f03673151b9f01923d783e24fb66fb82 (patch) | |
tree | 05a1ff7811949a07fa85d61c26927c2604d349b0 | |
parent | 07a8d02c0c3b7b59dd16b8baccf32958fa1cf420 (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-x | tool/rbinstall.rb | 5 |
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: |