aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Homebrew/keg.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb
index 957d9806d..3413775a9 100644
--- a/Library/Homebrew/keg.rb
+++ b/Library/Homebrew/keg.rb
@@ -80,6 +80,7 @@ protected
# symlinks the contents of self+foo recursively into /usr/local/foo
def link_dir foo
root = self+foo
+ return unless root.exist?
root.find do |src|
next if src == root