aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2012-09-03 11:57:09 -0400
committerMax Howell2012-09-03 15:12:29 -0400
commitfeb77b208566eed340197dc17d27e0de5c1e16f7 (patch)
tree341d3a253ae80c985ca0968dc6ce37f951d76ef7 /Library
parentb7f50ebf3fc519b72fb5c11e20d9880bc8d8a480 (diff)
downloadbrew-feb77b208566eed340197dc17d27e0de5c1e16f7.tar.bz2
Prevent possible bug in build's optlink
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/build.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/build.rb b/Library/Homebrew/build.rb
index 82e70cf8c..98924f648 100755
--- a/Library/Homebrew/build.rb
+++ b/Library/Homebrew/build.rb
@@ -159,7 +159,7 @@ def fixopt f
f.linked_keg.readlink
elsif f.prefix.directory?
f.prefix
- elsif (kids = f.rack.children).size == 1
+ elsif (kids = f.rack.children).size == 1 and kids.first.directory?
kids.first
else
raise