aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/install.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb
index 5aa198f31..4a20dc7cb 100644
--- a/Library/Homebrew/cmd/install.rb
+++ b/Library/Homebrew/cmd/install.rb
@@ -12,7 +12,7 @@ module Homebrew extend self
end unless ARGV.force?
ARGV.formulae.each do |f|
- if File.directory? HOMEBREW_REPOSITORY/"Library/LinkedKegs/#{f.name}"
+ if f.linked_keg.directory?
raise "#{f} already installed\nTry: brew upgrade #{f}"
end
end unless ARGV.force?