Don't link_dir if the target doesn't exist.
Fixes Homebrew/homebrew#1115 for Ruby 1.9, thanks to assaf.
This commit is contained in:
parent
d2b2ecbd0b
commit
fb9f4bbccc
@ -80,6 +80,7 @@ protected
|
|||||||
# symlinks the contents of self+foo recursively into /usr/local/foo
|
# symlinks the contents of self+foo recursively into /usr/local/foo
|
||||||
def link_dir foo
|
def link_dir foo
|
||||||
root = self+foo
|
root = self+foo
|
||||||
|
return unless root.exist?
|
||||||
|
|
||||||
root.find do |src|
|
root.find do |src|
|
||||||
next if src == root
|
next if src == root
|
||||||
|
Loading…
x
Reference in New Issue
Block a user