uninstall: improve grammar for multiple version message
This commit is contained in:
parent
be59b4ea4f
commit
62addcfce8
@ -15,8 +15,9 @@ module Homebrew
|
|||||||
|
|
||||||
rack = keg/".."
|
rack = keg/".."
|
||||||
if rack.directory?
|
if rack.directory?
|
||||||
versions = rack.subdirs.map(&:basename).join(", ")
|
versions = rack.subdirs.map(&:basename)
|
||||||
puts "#{keg.name} #{versions} are still installed."
|
verb = versions.length == 1 ? "is" : "are"
|
||||||
|
puts "#{keg.name} #{versions.join(", ")} #{verb} still installed."
|
||||||
puts "Remove them all with `brew uninstall --force #{keg.name}`."
|
puts "Remove them all with `brew uninstall --force #{keg.name}`."
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user