cmd/info: fix frozen pathname usage.

Fixes #6055.
This commit is contained in:
Mike McQuaid 2019-04-24 14:17:04 -07:00
parent c522b57d4f
commit 70b07a914f
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -73,7 +73,7 @@ module Homebrew
output_analytics
elsif HOMEBREW_CELLAR.exist?
count = Formula.racks.length
puts "#{count} #{"keg".pluralize(count)}, #{HOMEBREW_CELLAR.abv}"
puts "#{count} #{"keg".pluralize(count)}, #{HOMEBREW_CELLAR.dup.abv}"
end
else
ARGV.named.each_with_index do |f, i|